Visualization Library 2.0.0-b3
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 <VLXParserVLB.hpp>
Public Member Functions | |
VLXParserVLB () | |
bool | parseHeader () |
bool | readChunk (unsigned char &chunk) |
bool | readInteger (long long &n) |
void | decodeIntegers (const std::vector< unsigned char > &in, std::vector< long long > &out) |
bool | readString (std::string &str) |
bool | parse () |
bool | parseStructure (VLXStructure *st) |
bool | parseList (VLXList *list) |
bool | readValue (VLXValue &val) |
void | setInputFile (VirtualFile *file) |
VirtualFile * | inputFile () |
const VirtualFile * | inputFile () const |
Public Member Functions inherited from vl::VLXParser | |
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... | |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Protected Attributes inherited from vl::VLXParser | |
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 |
Parses a VLT file translating it into a VLX hierarchy.
Definition at line 41 of file VLXParserVLB.hpp.
|
inline |
Definition at line 46 of file VLXParserVLB.hpp.
References vl::VLXParser::mVersion.
|
inline |
Definition at line 108 of file VLXParserVLB.hpp.
Referenced by readValue().
|
inline |
Definition at line 499 of file VLXParserVLB.hpp.
Referenced by parse(), parseHeader(), readChunk(), readInteger(), readString(), and readValue().
|
inline |
Definition at line 501 of file VLXParserVLB.hpp.
|
inlinevirtual |
Implements vl::VLXParser.
Definition at line 147 of file VLXParserVLB.hpp.
References vl::VirtualFile::close(), vl::Log::error(), vl::ref< T >::get(), inputFile(), vl::VLXParser::mEncoding, vl::VLXParser::mMetadata, vl::VLXParser::mStructures, vl::VLXParser::mVersion, vl::OM_ReadOnly, vl::VirtualFile::open(), parseHeader(), vl::VLXParser::parseMetadata(), parseStructure(), readChunk(), and vl::VLB_ChunkStructure.
|
inlinevirtual |
Implements vl::VLXParser.
Definition at line 51 of file VLXParserVLB.hpp.
References inputFile(), vl::VLXParser::mEncoding, vl::VLXParser::mVersion, vl::VirtualFile::read(), and vl::VirtualFile::readUInt8().
Referenced by parse().
|
inline |
Definition at line 257 of file VLXParserVLB.hpp.
References readInteger(), readString(), readValue(), vl::VLXTaggedValue::setTag(), and vl::VLXList::value().
Referenced by readValue().
|
inline |
Definition at line 219 of file VLXParserVLB.hpp.
References readInteger(), readString(), readValue(), vl::VLXStructure::setID(), vl::VLXStructure::Value::setKey(), vl::VLXTaggedValue::setTag(), vl::VLXStructure::Value::value(), and vl::VLXStructure::value().
Referenced by parse(), and readValue().
|
inline |
Definition at line 80 of file VLXParserVLB.hpp.
References inputFile(), and vl::VirtualFile::read().
Referenced by parse(), and readValue().
|
inline |
Definition at line 82 of file VLXParserVLB.hpp.
References inputFile(), and vl::VirtualFile::read().
Referenced by parseList(), parseStructure(), readString(), and readValue().
|
inline |
Definition at line 132 of file VLXParserVLB.hpp.
References inputFile(), vl::VirtualFile::read(), readInteger(), and VL_CHECK.
Referenced by parseList(), parseStructure(), and readValue().
|
inline |
Definition at line 285 of file VLXParserVLB.hpp.
References decodeIntegers(), vl::decompress(), vl::VLXValue::getArrayInteger(), vl::VLXValue::getArrayReal(), vl::VLXValue::getList(), vl::VLXValue::getRawtextBlock(), vl::VLXValue::getStructure(), inputFile(), parseList(), parseStructure(), vl::VirtualFile::read(), readChunk(), vl::VirtualFile::readDouble(), vl::VirtualFile::readFloat(), readInteger(), readString(), vl::VirtualFile::readUInt8(), vl::VLXValue::setArrayInteger(), vl::VLXValue::setArrayReal(), vl::VLXValue::setBool(), vl::VLXValue::setID(), vl::VLXValue::setIdentifier(), vl::VLXValue::setInteger(), vl::VLXValue::setList(), vl::VLXValue::setRawtextBlock(), vl::VLXValue::setReal(), vl::VLXValue::setString(), vl::VLXValue::setStructure(), vl::VLXRawtextBlock::setValue(), vl::VLXArrayTemplate< T >::value(), VL_CHECK, vl::VLB_ChunkArrayInteger, vl::VLB_ChunkArrayRealDouble, vl::VLB_ChunkArrayRealFloat, vl::VLB_ChunkBool, vl::VLB_ChunkID, vl::VLB_ChunkIdentifier, vl::VLB_ChunkInteger, vl::VLB_ChunkList, vl::VLB_ChunkRawtext, vl::VLB_ChunkRealDouble, vl::VLB_ChunkString, and vl::VLB_ChunkStructure.
Referenced by parseList(), and parseStructure().
|
inline |
Definition at line 497 of file VLXParserVLB.hpp.
Referenced by vl::VLXSerializer::loadVLB().
Visualization Library 2.0.0-b3 Reference Documentation
Updated on Tue Feb 7 2017 00:26:11.
© Copyright Michele Bosi. All rights reserved.