openrave.org

 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
[legend]
Collaboration diagram for OpenRAVE::ConfigurationSpecification::Reader:
Collaboration graph
[legend]

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

ConfigurationSpecification_spec
 
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)
virtual

gets called for all data in between tags.

Parameters
cha string to the data

Implements OpenRAVE::BaseXMLReader.

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

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

Parameters
nameof the tag, will be always lower case
Returns
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 
)
virtual

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

Parameters
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
Returns
true if tag is accepted and this class will process it, otherwise false

Implements OpenRAVE::BaseXMLReader.

Member Data Documentation

BaseXMLReaderPtr OpenRAVE::ConfigurationSpecification::Reader::_preader
protected

Definition at line 1002 of file openrave.h.

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

Definition at line 1000 of file openrave.h.

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

Definition at line 1001 of file openrave.h.


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