Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Compiles the link-map which associates a VLXStructure to it's ID, to be used later by other visitors. More...
#include <VLXVisitorLinkMapper.hpp>
Public Types | |
enum | EError { NoError, DuplicateID } |
Public Member Functions | |
VLXVisitorLinkMapper (std::map< std::string, ref< VLXStructure > > *map=NULL) | |
void | setLinkMap (std::map< std::string, ref< VLXStructure > > *map) |
void | declareID (VLXStructure *obj) |
virtual void | visitStructure (VLXStructure *obj) |
virtual void | visitList (VLXList *list) |
virtual void | visitArray (VLXArrayInteger *) |
virtual void | visitArray (VLXArrayReal *) |
EError | error () const |
void | setError (EError err) |
Compiles the link-map which associates a VLXStructure to it's ID, to be used later by other visitors.
Can be called multiple times.
Definition at line 40 of file VLXVisitorLinkMapper.hpp.
Definition at line 45 of file VLXVisitorLinkMapper.hpp.
vl::VLXVisitorLinkMapper::VLXVisitorLinkMapper | ( | std::map< std::string, ref< VLXStructure > > * | map = NULL ) |
[inline] |
Definition at line 52 of file VLXVisitorLinkMapper.hpp.
References NoError.
void vl::VLXVisitorLinkMapper::setLinkMap | ( | std::map< std::string, ref< VLXStructure > > * | map ) | [inline] |
Definition at line 58 of file VLXVisitorLinkMapper.hpp.
void vl::VLXVisitorLinkMapper::declareID | ( | VLXStructure * | obj ) | [inline] |
Definition at line 63 of file VLXVisitorLinkMapper.hpp.
References DuplicateID, error(), vl::VLXTaggedValue::tag(), and vl::VLXStructure::uid().
Referenced by visitStructure().
virtual void vl::VLXVisitorLinkMapper::visitStructure | ( | VLXStructure * | obj ) | [inline, virtual] |
Reimplemented from vl::VLXVisitor.
Definition at line 81 of file VLXVisitorLinkMapper.hpp.
References declareID(), vl::VLXVisitor::isVisited(), vl::VLXValue::List, vl::VLXValue::Structure, and vl::VLXStructure::value().
virtual void vl::VLXVisitorLinkMapper::visitList | ( | VLXList * | list ) | [inline, virtual] |
Reimplemented from vl::VLXVisitor.
Definition at line 98 of file VLXVisitorLinkMapper.hpp.
References vl::VLXVisitor::isVisited(), vl::VLXValue::List, vl::VLXValue::Structure, vl::VLXList::value(), and vl::Log::warning().
virtual void vl::VLXVisitorLinkMapper::visitArray | ( | VLXArrayInteger * | ) | [inline, virtual] |
Reimplemented from vl::VLXVisitor.
Definition at line 125 of file VLXVisitorLinkMapper.hpp.
virtual void vl::VLXVisitorLinkMapper::visitArray | ( | VLXArrayReal * | ) | [inline, virtual] |
Reimplemented from vl::VLXVisitor.
Definition at line 127 of file VLXVisitorLinkMapper.hpp.
EError vl::VLXVisitorLinkMapper::error | ( | ) | const [inline] |
Definition at line 129 of file VLXVisitorLinkMapper.hpp.
Referenced by declareID(), and vl::VLXLinker::link().
void vl::VLXVisitorLinkMapper::setError | ( | EError | err ) | [inline] |
Definition at line 131 of file VLXVisitorLinkMapper.hpp.