Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::VLXParser Class Reference

Base class for VLX parsers. More...

#include <VLXParser.hpp>

Inheritance diagram for vl::VLXParser:
vl::Object vl::VLXParserVLB vl::VLXParserVLT

List of all members.

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, VLXValuemMetadata

Detailed Description

Base class for VLX parsers.

Definition at line 41 of file VLXParser.hpp.


Member Function Documentation

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]

The imported structures.

Definition at line 82 of file VLXParser.hpp.

References mStructures.

const std::vector< ref<VLXStructure> >& vl::VLXParser::structures (  ) const [inline]

The imported structures.

Definition at line 85 of file VLXParser.hpp.

References mStructures.

const std::map< std::string, VLXValue >& vl::VLXParser::metadata (  ) const [inline]

The imported metadata.

Definition at line 88 of file VLXParser.hpp.

References mMetadata.

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]

The VLX language version.

Definition at line 94 of file VLXParser.hpp.

References mVersion.


Member Data Documentation

std::string vl::VLXParser::mEncoding [protected]
unsigned short vl::VLXParser::mVersion [protected]
std::vector< ref<VLXStructure> > vl::VLXParser::mStructures [protected]
std::map< std::string, VLXValue > vl::VLXParser::mMetadata [protected]

The documentation for this class was generated from the following file:

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:08.
Permission is granted to use this page to write and publish articles regarding Visualization Library.