Visualization Library 2.0.0-b3
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Base class for VLX parsers. More...
#include <VLXParser.hpp>
Public Member Functions | |
virtual bool | parseHeader ()=0 |
virtual bool | parse ()=0 |
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< ref< VLXStructure > > & | structures () |
The imported structures. More... | |
const std::vector< 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... | |
Protected Attributes | |
std::string | mEncoding |
unsigned short | mVersion |
std::vector< ref< VLXStructure > > | mStructures |
std::map< std::string, VLXValue > | mMetadata |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Base class for VLX parsers.
Definition at line 41 of file VLXParser.hpp.
|
inline |
The encoding used to encode strings.
Definition at line 91 of file VLXParser.hpp.
References mEncoding.
|
inline |
Links the.
Definition at line 52 of file VLXParser.hpp.
References vl::VLXLinker::add(), vl::VLXLinker::link(), and mStructures.
|
inline |
|
pure virtual |
Implemented in vl::VLXParserVLB, and vl::VLXParserVLT.
|
pure virtual |
Implemented in vl::VLXParserVLT, and vl::VLXParserVLB.
|
inline |
Moves the <Metadata> key/value pairs in the Metadata map for quick and easy access and removes the <Metadata> structure.
Definition at line 63 of file VLXParser.hpp.
References mMetadata, mStructures, and vl::VLXStructure::value().
Referenced by vl::VLXParserVLT::parse(), and vl::VLXParserVLB::parse().
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 97 of file VLXParser.hpp.
Referenced by encoding(), vl::VLXParserVLT::parse(), vl::VLXParserVLB::parse(), vl::VLXParserVLB::parseHeader(), and vl::VLXParserVLT::parseHeader().
|
protected |
Definition at line 100 of file VLXParser.hpp.
Referenced by metadata(), vl::VLXParserVLT::parse(), vl::VLXParserVLB::parse(), and parseMetadata().
|
protected |
Definition at line 99 of file VLXParser.hpp.
Referenced by link(), vl::VLXParserVLT::parse(), vl::VLXParserVLB::parse(), parseMetadata(), and structures().
|
protected |
Definition at line 98 of file VLXParser.hpp.
Referenced by vl::VLXParserVLT::parse(), vl::VLXParserVLB::parse(), vl::VLXParserVLB::parseHeader(), vl::VLXParserVLT::parseHeader(), version(), vl::VLXParserVLB::VLXParserVLB(), and vl::VLXParserVLT::VLXParserVLT().
Visualization Library 2.0.0-b3 Reference Documentation
Updated on Tue Feb 7 2017 00:26:11.
© Copyright Michele Bosi. All rights reserved.