Visualization Library 2.0.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Parses a VLT file translating it into a VLX hierarchy. More...
#include <ParserVLT.hpp>
Public Member Functions | |
ParserVLT () | |
bool | getToken (VLTToken &token) |
bool | parseHeader () |
bool | parse () |
bool | parseStructure (VLXStructure *object) |
bool | parseList (VLXList *list) |
bool | parseArray (vl::ref< VLXArray > &arr) |
void | listTokens () |
VLTTokenizer * | tokenizer () |
const VLTTokenizer * | tokenizer () const |
Public Member Functions inherited from vlX::Parser | |
bool | link () |
Links the. More... | |
void | parseMetadata () |
Moves the <Metadata> key/value pairs in the Metadata map for quick and easy access and removes the <Metadata> structure. More... | |
std::vector< vl::ref< VLXStructure > > & | structures () |
The imported structures. More... | |
const std::vector< vl::ref< VLXStructure > > & | structures () const |
The imported structures. More... | |
const std::map< std::string, VLXValue > & | metadata () const |
The imported metadata. More... | |
const std::string & | encoding () const |
The encoding used to encode strings. More... | |
unsigned short | version () const |
The VLX language version. More... | |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Protected Attributes inherited from vlX::Parser | |
std::string | mEncoding |
unsigned short | mVersion |
std::vector< vl::ref< VLXStructure > > | mStructures |
std::map< std::string, VLXValue > | mMetadata |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Parses a VLT file translating it into a VLX hierarchy.
Definition at line 47 of file ParserVLT.hpp.
|
inline |
Definition at line 52 of file ParserVLT.hpp.
References vlX::Parser::mVersion.
|
inline |
Definition at line 58 of file ParserVLT.hpp.
Referenced by listTokens(), parse(), parseArray(), parseHeader(), parseList(), and parseStructure().
|
inline |
Definition at line 612 of file ParserVLT.hpp.
References vlX::VLTToken::Equals, getToken(), vlX::VLTToken::ID, vlX::VLTToken::Identifier, vlX::VLTToken::Integer, vlX::VLTToken::LeftCurlyBracket, vlX::VLTToken::LeftFancyBracket, vlX::VLTToken::LeftRoundBracket, vlX::VLTToken::LeftSquareBracket, vlX::VLTToken::RawtextBlock, vlX::VLTToken::real, vlX::VLTToken::RightCurlyBracket, vlX::VLTToken::RightFancyBracket, vlX::VLTToken::RightRoundBracket, vlX::VLTToken::RightSquareBracket, vlX::VLTToken::String, vlX::VLTToken::TagHeader, and vlX::VLTToken::TOKEN_EOF.
|
inlinevirtual |
Implements vlX::Parser.
Definition at line 99 of file ParserVLT.hpp.
References vl::Log::error(), vl::ref< T >::get(), getToken(), vlX::VLTToken::LeftCurlyBracket, vlX::Parser::mEncoding, vlX::Parser::mMetadata, vlX::Parser::mStructures, vlX::Parser::mVersion, parseHeader(), vlX::Parser::parseMetadata(), parseStructure(), vlX::VLTToken::TagHeader, vlX::VLTToken::TOKEN_EOF, tokenizer(), VL_CHECK, and VL_SERIALIZER_VERSION.
Definition at line 495 of file ParserVLT.hpp.
References getToken(), vlX::VLTToken::Integer, vlX::VLTToken::real, and vlX::VLTToken::RightRoundBracket.
Referenced by parseList(), and parseStructure().
|
inlinevirtual |
Implements vlX::Parser.
Definition at line 60 of file ParserVLT.hpp.
References vlX::VLTToken::Equals, vl::Log::error(), getToken(), vlX::VLTToken::Identifier, vlX::VLTToken::Integer, vlX::Parser::mEncoding, vlX::VLTToken::mString, vlX::VLTToken::mType, and vlX::Parser::mVersion.
Referenced by parse().
|
inline |
Definition at line 355 of file ParserVLT.hpp.
References vlX::VLTToken::Boolean, vl::ref< T >::get(), vlX::VLXValue::getRawtextBlock(), getToken(), vlX::VLTToken::ID, vlX::VLTToken::Identifier, vlX::VLTToken::Integer, vlX::VLTToken::LeftCurlyBracket, vlX::VLTToken::LeftFancyBracket, vlX::VLTToken::LeftRoundBracket, vlX::VLTToken::LeftSquareBracket, parseArray(), parseStructure(), vlX::VLTToken::RawtextBlock, vlX::VLTToken::real, vlX::VLTToken::RightFancyBracket, vlX::VLTToken::RightSquareBracket, vlX::VLXValue::setArray(), vlX::VLXValue::setBool(), vlX::VLXValue::setID(), vlX::VLXValue::setIdentifier(), vlX::VLXValue::setInteger(), vlX::VLXTaggedValue::setLineNumber(), vlX::VLXValue::setLineNumber(), vlX::VLXValue::setList(), vlX::VLXValue::setRawtextBlock(), vlX::VLXValue::setReal(), vlX::VLXValue::setString(), vlX::VLXValue::setStructure(), vlX::VLXTaggedValue::setTag(), vlX::VLXRawtextBlock::setValue(), vlX::VLTToken::String, vlX::VLTToken::TagHeader, tokenizer(), and vlX::VLXList::value().
Referenced by parseStructure().
|
inline |
Definition at line 177 of file ParserVLT.hpp.
References vlX::VLTToken::Boolean, vlX::VLTToken::Equals, vl::Log::error(), vl::ref< T >::get(), vlX::VLXValue::getRawtextBlock(), getToken(), vlX::VLTToken::ID, vlX::VLTToken::Identifier, vlX::VLTToken::Integer, vlX::VLTToken::LeftCurlyBracket, vlX::VLTToken::LeftFancyBracket, vlX::VLTToken::LeftRoundBracket, vlX::VLTToken::LeftSquareBracket, parseArray(), parseList(), vlX::VLTToken::RawtextBlock, vlX::VLTToken::real, vlX::VLTToken::RightCurlyBracket, vlX::VLTToken::RightFancyBracket, vlX::VLXValue::setArray(), vlX::VLXValue::setBool(), vlX::VLXValue::setID(), vlX::VLXValue::setIdentifier(), vlX::VLXValue::setInteger(), vlX::VLXStructure::KeyValue::setKey(), vlX::VLXTaggedValue::setLineNumber(), vlX::VLXValue::setLineNumber(), vlX::VLXValue::setList(), vlX::VLXValue::setRawtextBlock(), vlX::VLXValue::setReal(), vlX::VLXValue::setString(), vlX::VLXValue::setStructure(), vlX::VLXRawtextBlock::setValue(), vlX::VLTToken::String, vlX::VLTToken::TagHeader, tokenizer(), vlX::VLXStructure::uid(), and vlX::VLXStructure::KeyValue::value().
Referenced by parse(), and parseList().
|
inline |
Definition at line 644 of file ParserVLT.hpp.
Referenced by vlX::VLXSerializer::loadVLT(), parse(), parseList(), and parseStructure().
|
inline |
Definition at line 646 of file ParserVLT.hpp.
Visualization Library 2.0.0 Reference Documentation
Updated on Wed Dec 23 2020 12:44:13.
© Copyright Michele Bosi. All rights reserved.