openrave.org

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

reads and stores the infromation hierarchically More...

#include <xmlreaders.h>

Inheritance diagram for OpenRAVE::xmlreaders::HierarchicalXMLReader:
Inheritance graph
[legend]
Collaboration diagram for OpenRAVE::xmlreaders::HierarchicalXMLReader:
Collaboration graph
[legend]

Public Member Functions

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

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

reads and stores the infromation hierarchically

Definition at line 122 of file xmlreaders.h.

Constructor & Destructor Documentation

OpenRAVE::xmlreaders::HierarchicalXMLReader::HierarchicalXMLReader ( const std::string &  xmlid,
const AttributesList atts 
)

Member Function Documentation

virtual void OpenRAVE::xmlreaders::HierarchicalXMLReader::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::xmlreaders::HierarchicalXMLReader::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 XMLReadablePtr OpenRAVE::xmlreaders::HierarchicalXMLReader::GetReadable ( )
virtual

a readable interface that stores the information processsed for the current tag This pointer is used to the InterfaceBase class registered readers

Reimplemented from OpenRAVE::BaseXMLReader.

virtual ProcessElement OpenRAVE::xmlreaders::HierarchicalXMLReader::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.


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