Visualization Library v1.0.3A 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. | |
void | parseMetadata () |
Moves the <Metadata> key/value pairs in the Metadata map for quick and easy access and removes the <Metadata> structure. | |
std::vector< ref< VLXStructure > > & | structures () |
The imported structures. | |
const std::vector< ref < VLXStructure > > & | structures () const |
The imported structures. | |
const std::map< std::string, VLXValue > & | metadata () const |
The imported metadata. | |
const std::string & | encoding () const |
The encoding used to encode strings. | |
unsigned short | version () const |
The VLX language version. | |
Protected Attributes | |
std::string | mEncoding |
unsigned short | mVersion |
std::vector< ref< VLXStructure > > | mStructures |
std::map< std::string, VLXValue > | mMetadata |
Base class for VLX parsers.
Definition at line 41 of file VLXParser.hpp.
virtual bool vl::VLXParser::parseHeader | ( | ) | [pure virtual] |
Implemented in vl::VLXParserVLB, and vl::VLXParserVLT.
virtual bool vl::VLXParser::parse | ( | ) | [pure virtual] |
Implemented in vl::VLXParserVLB, and vl::VLXParserVLT.
bool vl::VLXParser::link | ( | ) | [inline] |
Links the.
Definition at line 52 of file VLXParser.hpp.
References vl::VLXLinker::add(), vl::VLXLinker::link(), and mStructures.
void vl::VLXParser::parseMetadata | ( | ) | [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().
std::vector< ref<VLXStructure> >& vl::VLXParser::structures | ( | ) | [inline] |
const std::vector< ref<VLXStructure> >& vl::VLXParser::structures | ( | ) | const [inline] |
const std::map< std::string, VLXValue >& vl::VLXParser::metadata | ( | ) | const [inline] |
const std::string& vl::VLXParser::encoding | ( | ) | const [inline] |
The encoding used to encode strings.
Definition at line 91 of file VLXParser.hpp.
References mEncoding.
unsigned short vl::VLXParser::version | ( | ) | const [inline] |
std::string vl::VLXParser::mEncoding [protected] |
Definition at line 97 of file VLXParser.hpp.
Referenced by encoding(), vl::VLXParserVLT::parse(), vl::VLXParserVLB::parse(), vl::VLXParserVLT::parseHeader(), and vl::VLXParserVLB::parseHeader().
unsigned short vl::VLXParser::mVersion [protected] |
Definition at line 98 of file VLXParser.hpp.
Referenced by vl::VLXParserVLT::parse(), vl::VLXParserVLB::parse(), vl::VLXParserVLT::parseHeader(), vl::VLXParserVLB::parseHeader(), version(), vl::VLXParserVLB::VLXParserVLB(), and vl::VLXParserVLT::VLXParserVLT().
std::vector< ref<VLXStructure> > vl::VLXParser::mStructures [protected] |
Definition at line 99 of file VLXParser.hpp.
Referenced by link(), vl::VLXParserVLT::parse(), vl::VLXParserVLB::parse(), parseMetadata(), and structures().
std::map< std::string, VLXValue > vl::VLXParser::mMetadata [protected] |
Definition at line 100 of file VLXParser.hpp.
Referenced by metadata(), vl::VLXParserVLT::parse(), vl::VLXParserVLB::parse(), and parseMetadata().