All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
OpenRAVE::ConfigurationSpecification::Reader Class Reference

#include <openrave.h>

Inheritance diagram for OpenRAVE::ConfigurationSpecification::Reader:
Inheritance graph
Collaboration diagram for OpenRAVE::ConfigurationSpecification::Reader:
Collaboration graph

Public Member Functions

 Reader (ConfigurationSpecification &spec)
virtual ProcessElement startElement (const std::string &name, const AttributesList &atts)
virtual bool endElement (const std::string &name)
virtual void characters (const std::string &ch)
- Public Member Functions inherited from OpenRAVE::BaseXMLReader
 BaseXMLReader ()
virtual ~BaseXMLReader ()
virtual XMLReadablePtr GetReadable ()

Protected Attributes

std::stringstream _ss
BaseXMLReaderPtr _preader

Additional Inherited Members

- Public Types inherited from OpenRAVE::BaseXMLReader
enum  ProcessElement { PE_Pass =0, PE_Support =1, PE_Ignore =2 }
- Public Attributes inherited from OpenRAVE::BaseXMLReader
std::string _filename
 XML filename/resource used for this class (can be empty)

Detailed Description

Definition at line 992 of file openrave.h.

Constructor & Destructor Documentation

OpenRAVE::ConfigurationSpecification::Reader::Reader ( ConfigurationSpecification spec)

Member Function Documentation

virtual void OpenRAVE::ConfigurationSpecification::Reader::characters ( const std::string &  ch)

gets called for all data in between tags.

cha string to the data

Implements OpenRAVE::BaseXMLReader.

virtual bool OpenRAVE::ConfigurationSpecification::Reader::endElement ( const std::string &  name)

Gets called at the end of each "</type>" expression. In this case, name is "type"

nameof the tag, will be always lower case
true if XMLReader has finished parsing (one condition is that name==_fieldname) , otherwise false

Implements OpenRAVE::BaseXMLReader.

virtual ProcessElement OpenRAVE::ConfigurationSpecification::Reader::startElement ( const std::string &  name,
const AttributesList atts 

Gets called in the beginning of each "<type>" expression. In this case, name is "type"

nameof the tag, will be always lower case
attsstring of attributes where the first std::string is the attribute name and second is the value
true if tag is accepted and this class will process it, otherwise false

Implements OpenRAVE::BaseXMLReader.

Member Data Documentation

BaseXMLReaderPtr OpenRAVE::ConfigurationSpecification::Reader::_preader

Definition at line 1002 of file openrave.h.

ConfigurationSpecification& OpenRAVE::ConfigurationSpecification::Reader::_spec

Definition at line 1000 of file openrave.h.

std::stringstream OpenRAVE::ConfigurationSpecification::Reader::_ss

Definition at line 1001 of file openrave.h.

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