Choreonoid  1.8
Public Member Functions | List of all members
cnoid::VRMLParser Class Reference

Parser for VRML97 format. More...

#include <VRMLParser.h>

Public Member Functions

 VRMLParser (const std::string &filename)
 
 VRMLParser ()
 
 ~VRMLParser ()
 
void setMessageSink (std::ostream &os)
 
void setProtoInstanceActualNodeExtractionMode (bool isOn)
 
void load (const std::string &filename)
 
VRMLNodePtr readNode ()
 
void checkEOF ()
 

Detailed Description

Parser for VRML97 format.

The VRMLParser class reads a VRML97 file and extract its nodes.

Constructor & Destructor Documentation

◆ VRMLParser() [1/2]

VRMLParser::VRMLParser ( const std::string &  filename)

Constructor. This version of constructor do 'load' mehtod after constructing the object.

Parameters
filenamefile name of a target VRML97 file.

◆ VRMLParser() [2/2]

VRMLParser::VRMLParser ( )

◆ ~VRMLParser()

VRMLParser::~VRMLParser ( )

Member Function Documentation

◆ checkEOF()

void VRMLParser::checkEOF ( )

◆ load()

void VRMLParser::load ( const std::string &  filename)

This function throws EasyScanner::Exception when an error occurs.

◆ readNode()

VRMLNodePtr VRMLParser::readNode ( )

This method returns the top node of the next node tree written in the file.

◆ setMessageSink()

void VRMLParser::setMessageSink ( std::ostream &  os)

◆ setProtoInstanceActualNodeExtractionMode()

void VRMLParser::setProtoInstanceActualNodeExtractionMode ( bool  isOn)

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