Visualization Library 2.0.0-b3
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Translates a VLX hierarchy into VLB format writing to the provided VirtualFile. More...
#include <VLXVisitorExportToVLB.hpp>
Public Member Functions | |
VLXVisitorExportToVLB (VirtualFile *file=NULL) | |
bool | isUsed (const std::string &uid) |
void | writeValue (VLXValue &value) |
virtual void | visitStructure (VLXStructure *obj) |
virtual void | visitList (VLXList *list) |
virtual void | visitArray (VLXArrayInteger *arr) |
bool | needsDoublePrecision (const double *in, size_t count) |
virtual void | visitArray (VLXArrayReal *arr) |
void | writeHeader () |
void | writeString (const char *str) |
void | writeInteger (long long n) |
void | encodeIntegers (long long *val, int count, std::vector< unsigned char > &out) |
void | setIDSet (std::map< std::string, int > *uids) |
std::map< std::string, int > * | uidSet () |
const std::map< std::string, int > * | uidSet () const |
void | setOutputFile (VirtualFile *file) |
VirtualFile * | outputFile () |
const VirtualFile * | outputFile () const |
Public Member Functions inherited from vl::VLXVisitor | |
virtual void | visitRawtextBlock (VLXRawtextBlock *) |
bool | isVisited (void *node) |
void | resetVisitedNodes () |
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::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Translates a VLX hierarchy into VLB format writing to the provided VirtualFile.
Definition at line 43 of file VLXVisitorExportToVLB.hpp.
|
inline |
Definition at line 48 of file VLXVisitorExportToVLB.hpp.
References NULL, and setOutputFile().
|
inline |
Definition at line 342 of file VLXVisitorExportToVLB.hpp.
Referenced by visitArray().
|
inline |
Definition at line 54 of file VLXVisitorExportToVLB.hpp.
References VL_TRAP.
|
inline |
Definition at line 236 of file VLXVisitorExportToVLB.hpp.
Referenced by visitArray().
|
inline |
Definition at line 386 of file VLXVisitorExportToVLB.hpp.
|
inline |
Definition at line 388 of file VLXVisitorExportToVLB.hpp.
|
inline |
Definition at line 370 of file VLXVisitorExportToVLB.hpp.
Referenced by vl::VLXSerializer::saveVLB().
|
inline |
Definition at line 376 of file VLXVisitorExportToVLB.hpp.
References vl::VirtualFile::close(), vl::OM_WriteOnly, and vl::VirtualFile::open().
Referenced by VLXVisitorExportToVLB().
|
inline |
Definition at line 372 of file VLXVisitorExportToVLB.hpp.
|
inline |
Definition at line 374 of file VLXVisitorExportToVLB.hpp.
|
inlinevirtual |
Reimplemented from vl::VLXVisitor.
Definition at line 215 of file VLXVisitorExportToVLB.hpp.
References encodeIntegers(), vl::VLXTaggedValue::tag(), vl::VLXArrayTemplate< T >::value(), VL_CHECK, vl::VLB_ChunkArrayInteger, writeInteger(), and writeString().
|
inlinevirtual |
Reimplemented from vl::VLXVisitor.
Definition at line 248 of file VLXVisitorExportToVLB.hpp.
References vl::compress(), needsDoublePrecision(), vl::VLXTaggedValue::tag(), vl::VLXArrayTemplate< T >::value(), vl::VLB_ChunkArrayRealDouble, vl::VLB_ChunkArrayRealFloat, writeInteger(), and writeString().
|
inlinevirtual |
Reimplemented from vl::VLXVisitor.
Definition at line 192 of file VLXVisitorExportToVLB.hpp.
References vl::VLXVisitor::isVisited(), vl::VLXTaggedValue::tag(), vl::VLXList::value(), vl::VLB_ChunkList, vl::Log::warning(), writeInteger(), writeString(), and writeValue().
|
inlinevirtual |
Reimplemented from vl::VLXVisitor.
Definition at line 160 of file VLXVisitorExportToVLB.hpp.
References vl::VLXVisitor::isVisited(), vl::VLXTaggedValue::tag(), vl::VLXStructure::uid(), vl::VLXStructure::value(), vl::VLB_ChunkID, vl::VLB_ChunkStructure, writeInteger(), writeString(), and writeValue().
|
inline |
Definition at line 295 of file VLXVisitorExportToVLB.hpp.
Referenced by vl::VLXSerializer::saveVLB().
|
inline |
Definition at line 313 of file VLXVisitorExportToVLB.hpp.
Referenced by visitArray(), visitList(), visitStructure(), writeString(), and writeValue().
|
inline |
Definition at line 306 of file VLXVisitorExportToVLB.hpp.
References writeInteger().
Referenced by visitArray(), visitList(), visitStructure(), and writeValue().
|
inline |
Definition at line 72 of file VLXVisitorExportToVLB.hpp.
References vl::VLXArrayInteger::acceptVisitor(), vl::VLXArrayReal::acceptVisitor(), vl::VLXStructure::acceptVisitor(), vl::VLXList::acceptVisitor(), vl::VLXValue::ArrayInteger, vl::VLXValue::ArrayReal, vl::VLXValue::Bool, vl::VLXValue::getArrayInteger(), vl::VLXValue::getArrayReal(), vl::VLXValue::getBool(), vl::VLXValue::getID(), vl::VLXValue::getIdentifier(), vl::VLXValue::getInteger(), vl::VLXValue::getList(), vl::VLXValue::getRawtextBlock(), vl::VLXValue::getReal(), vl::VLXValue::getString(), vl::VLXValue::getStructure(), vl::VLXValue::ID, vl::VLXValue::Identifier, vl::VLXValue::Integer, vl::VLXValue::List, vl::VLXValue::RawtextBlock, vl::VLXValue::Real, vl::VLXValue::String, vl::VLXValue::Structure, vl::VLXTaggedValue::tag(), vl::VLXValue::type(), vl::VLXRawtextBlock::value(), vl::VLB_ChunkBool, vl::VLB_ChunkID, vl::VLB_ChunkIdentifier, vl::VLB_ChunkInteger, vl::VLB_ChunkRawtext, vl::VLB_ChunkRealDouble, vl::VLB_ChunkString, writeInteger(), and writeString().
Referenced by visitList(), and visitStructure().
Visualization Library 2.0.0-b3 Reference Documentation
Updated on Tue Feb 7 2017 00:26:11.
© Copyright Michele Bosi. All rights reserved.