vrmlproc & togeom
 
Loading...
Searching...
No Matches
vrml_proc::parser::VrmlParser Class Reference

Represents a VRML 2.0 parser. It takes const char* as input, respectivally their begin and end pointers. More...

#include <VrmlParser.hpp>

Inheritance diagram for vrml_proc::parser::VrmlParser:
vrml_proc::parser::Parser< BufferView, model::VrmlFile >

Public Member Functions

 VrmlParser (service::VrmlNodeManager &manager)
 Constructs new parser.
 
ParserResult< model::VrmlFile > Parse (BufferView buffer) override
 Parses the VRML 2.0 file.
 
- Public Member Functions inherited from vrml_proc::parser::Parser< BufferView, model::VrmlFile >
 Parser ()=default
 Default constructor.
 
virtual ~Parser ()=default
 Default destructor.
 

Detailed Description

Represents a VRML 2.0 parser. It takes const char* as input, respectivally their begin and end pointers.

Note that not the whole standart is supported.

Constructor & Destructor Documentation

◆ VrmlParser()

vrml_proc::parser::VrmlParser::VrmlParser ( service::VrmlNodeManager & manager)
inline

Constructs new parser.

Parameters
managerreference to VrmlNodemanager which will be populated with data in the source of parsing

Member Function Documentation

◆ Parse()

ParserResult< model::VrmlFile > vrml_proc::parser::VrmlParser::Parse ( BufferView buffer)
overridevirtual

Parses the VRML 2.0 file.

Parameters
bufferobject containing const char pointers indicating begin and end for const char* to parse.
Returns
vector of VRML nodes aka VRML file if parsing is succefull, otherwise error

Implements vrml_proc::parser::Parser< BufferView, model::VrmlFile >.


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