# Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics

[Home] [Tutorials] [All Classes] [Grouped Classes]

Public Member Functions

# vl::VLXParserVLT Class Reference

Parses a VLT file translating it into a VLX hierarchy. More...

`#include <VLXParserVLT.hpp>`

Inheritance diagram for vl::VLXParserVLT:

List of all members.

## Public Member Functions

| VLXParserVLT ()
bool | getToken (VLTToken &token)
bool | parseHeader ()
bool | parse ()
bool | parseStructure (VLXStructure *object)
bool | parseList (VLXList *list)
bool | parseArray (ref< VLXArray > &arr)
void | listTokens ()
VLTTokenizer * | tokenizer ()
const VLTTokenizer * | tokenizer () const

## Detailed Description

Parses a VLT file translating it into a VLX hierarchy.

Definition at line 46 of file VLXParserVLT.hpp.

## Constructor & Destructor Documentation

vl::VLXParserVLT::VLXParserVLT | ( | ) | `[inline]`

Definition at line 51 of file VLXParserVLT.hpp.

References vl::VLXParser::mVersion.

## Member Function Documentation

bool vl::VLXParserVLT::getToken | ( | VLTToken & | token ) | `[inline]`

Definition at line 57 of file VLXParserVLT.hpp.

Referenced by listTokens(), parse(), parseArray(), parseHeader(), parseList(), and parseStructure().

bool vl::VLXParserVLT::parseHeader | ( | ) | `[inline, virtual]`

Implements vl::VLXParser.

Definition at line 59 of file VLXParserVLT.hpp.

References vl::VLTToken::Equals, vl::Log::error(), getToken(), vl::VLTToken::Identifier, vl::VLTToken::Integer, vl::VLXParser::mEncoding, vl::VLTToken::mString, vl::VLTToken::mType, and vl::VLXParser::mVersion.

Referenced by parse().

bool vl::VLXParserVLT::parse | ( | ) | `[inline, virtual]`

Implements vl::VLXParser.

Definition at line 98 of file VLXParserVLT.hpp.

References vl::Log::error(), vl::ref< T >::get(), getToken(), vl::VLTToken::LeftCurlyBracket, vl::VLXParser::mEncoding, vl::VLXParser::mMetadata, vl::VLTToken::mString, vl::VLXParser::mStructures, vl::VLTToken::mType, vl::VLXParser::mVersion, parseHeader(), vl::VLXParser::parseMetadata(), parseStructure(), vl::VLTToken::TagHeader, vl::VLTToken::TOKEN_EOF, tokenizer(), and VL_CHECK.

bool vl::VLXParserVLT::parseStructure | ( | VLXStructure * | object ) | `[inline]`

Definition at line 176 of file VLXParserVLT.hpp.

References vl::VLTToken::Boolean, vl::VLTToken::Equals, vl::Log::error(), vl::ref< T >::get(), vl::VLXValue::getRawtextBlock(), getToken(), vl::VLTToken::ID, vl::VLTToken::Identifier, vl::VLTToken::Integer, vl::VLTToken::LeftCurlyBracket, vl::VLTToken::LeftFancyBracket, vl::VLTToken::LeftRoundBracket, vl::VLTToken::LeftSquareBracket, vl::VLTToken::mString, vl::VLTToken::mType, parseArray(), parseList(), vl::VLTToken::RawtextBlock, vl::VLTToken::real, vl::VLTToken::RightCurlyBracket, vl::VLTToken::RightFancyBracket, vl::VLXValue::setArray(), vl::VLXValue::setBool(), vl::VLXValue::setID(), vl::VLXValue::setIdentifier(), vl::VLXValue::setInteger(), vl::VLXStructure::Value::setKey(), vl::VLXTaggedValue::setLineNumber(), vl::VLXValue::setLineNumber(), vl::VLXValue::setList(), vl::VLXValue::setRawtextBlock(), vl::VLXValue::setReal(), vl::VLXValue::setString(), vl::VLXValue::setStructure(), vl::VLXRawtextBlock::setValue(), vl::VLTToken::String, vl::VLTToken::TagHeader, tokenizer(), vl::VLXStructure::uid(), and vl::VLXStructure::Value::value().

Referenced by parse(), and parseList().

bool vl::VLXParserVLT::parseList | ( | VLXList * | list ) | `[inline]`

Definition at line 354 of file VLXParserVLT.hpp.

References vl::VLTToken::Boolean, vl::ref< T >::get(), vl::VLXValue::getRawtextBlock(), getToken(), vl::VLTToken::ID, vl::VLTToken::Identifier, vl::VLTToken::Integer, vl::VLTToken::LeftCurlyBracket, vl::VLTToken::LeftFancyBracket, vl::VLTToken::LeftRoundBracket, vl::VLTToken::LeftSquareBracket, vl::VLTToken::mString, vl::VLTToken::mType, parseArray(), parseStructure(), vl::VLTToken::RawtextBlock, vl::VLTToken::real, vl::VLTToken::RightFancyBracket, vl::VLTToken::RightSquareBracket, vl::VLXValue::setArray(), vl::VLXValue::setBool(), vl::VLXValue::setID(), vl::VLXValue::setIdentifier(), vl::VLXValue::setInteger(), vl::VLXTaggedValue::setLineNumber(), vl::VLXValue::setLineNumber(), vl::VLXValue::setList(), vl::VLXValue::setRawtextBlock(), vl::VLXValue::setReal(), vl::VLXValue::setString(), vl::VLXValue::setStructure(), vl::VLXTaggedValue::setTag(), vl::VLXRawtextBlock::setValue(), vl::VLTToken::String, vl::VLTToken::TagHeader, tokenizer(), and vl::VLXList::value().

Referenced by parseStructure().

bool vl::VLXParserVLT::parseArray | ( | ref< VLXArray > & | arr ) | `[inline]`

Definition at line 494 of file VLXParserVLT.hpp.

References getToken(), vl::VLTToken::Integer, vl::VLTToken::mString, vl::VLTToken::mType, vl::VLTToken::real, and vl::VLTToken::RightRoundBracket.

Referenced by parseList(), and parseStructure().

void vl::VLXParserVLT::listTokens | ( | ) | `[inline]`

Definition at line 611 of file VLXParserVLT.hpp.

References vl::VLTToken::Equals, getToken(), vl::VLTToken::ID, vl::VLTToken::Identifier, vl::VLTToken::Integer, vl::VLTToken::LeftCurlyBracket, vl::VLTToken::LeftFancyBracket, vl::VLTToken::LeftRoundBracket, vl::VLTToken::LeftSquareBracket, vl::VLTToken::mString, vl::VLTToken::mType, vl::VLTToken::RawtextBlock, vl::VLTToken::real, vl::VLTToken::RightCurlyBracket, vl::VLTToken::RightFancyBracket, vl::VLTToken::RightRoundBracket, vl::VLTToken::RightSquareBracket, vl::VLTToken::String, vl::VLTToken::TagHeader, and vl::VLTToken::TOKEN_EOF.

VLTTokenizer* vl::VLXParserVLT::tokenizer | ( | ) | `[inline]`

Definition at line 643 of file VLXParserVLT.hpp.

References vl::ref< T >::get().

Referenced by vl::VLXSerializer::loadVLT(), parse(), parseList(), and parseStructure().

const VLTTokenizer* vl::VLXParserVLT::tokenizer | ( | ) | const`[inline]`

Definition at line 645 of file VLXParserVLT.hpp.

References vl::ref< T >::get().

The documentation for this class was generated from the following file:

- D:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlCore/VLXParserVLT.hpp

Visualization Library v2011.09.1162 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu Jan 26 2012 00:44:17.
Permission is granted to use this page to write and publish articles regarding Visualization Library.