Visualization Library 2.1.0

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

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | List of all members
vlX::ParserVLT Class Reference

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

#include <ParserVLT.hpp>

+ Inheritance diagram for vlX::ParserVLT:

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 ()
 
VLTTokenizertokenizer ()
 
const VLTTokenizertokenizer () 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...
 
Objectoperator= (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...
 
IMutexrefCountMutex ()
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
const IMutexrefCountMutex () 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, VLXValuemMetadata
 
- Protected Attributes inherited from vl::Object
std::string mObjectName
 
IMutexmRefCountMutex
 
int mReferenceCount
 
bool mAutomaticDelete
 

Detailed Description

Parses a VLT file translating it into a VLX hierarchy.

Definition at line 47 of file ParserVLT.hpp.

Constructor & Destructor Documentation

◆ ParserVLT()

vlX::ParserVLT::ParserVLT ( )
inline

Definition at line 52 of file ParserVLT.hpp.

References vlX::Parser::mVersion.

Member Function Documentation

◆ getToken()

bool vlX::ParserVLT::getToken ( VLTToken token)
inline

Definition at line 58 of file ParserVLT.hpp.

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

◆ listTokens()

void vlX::ParserVLT::listTokens ( )
inline

◆ parse()

bool vlX::ParserVLT::parse ( )
inlinevirtual

◆ parseArray()

bool vlX::ParserVLT::parseArray ( vl::ref< VLXArray > &  arr)
inline

◆ parseHeader()

bool vlX::ParserVLT::parseHeader ( )
inlinevirtual

◆ parseList()

bool vlX::ParserVLT::parseList ( VLXList list)
inline

◆ parseStructure()

bool vlX::ParserVLT::parseStructure ( VLXStructure object)
inline

◆ tokenizer() [1/2]

VLTTokenizer* vlX::ParserVLT::tokenizer ( )
inline

Definition at line 644 of file ParserVLT.hpp.

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

◆ tokenizer() [2/2]

const VLTTokenizer* vlX::ParserVLT::tokenizer ( ) const
inline

Definition at line 646 of file ParserVLT.hpp.


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