base class for all xml readers. XMLReaders are used to process data from xml files. More...
#include <openrave.h>
Public Types | |
enum | ProcessElement { PE_Pass =0, PE_Support =1, PE_Ignore =2 } |
Public Member Functions | |
BaseXMLReader () | |
virtual | ~BaseXMLReader () |
virtual XMLReadablePtr | GetReadable () |
virtual ProcessElement | startElement (const std::string &name, const AttributesList &atts)=0 |
virtual bool | endElement (const std::string &name)=0 |
virtual void | characters (const std::string &ch)=0 |
Public Attributes | |
std::string | _filename |
XML filename/resource used for this class (can be empty) | |
base class for all xml readers. XMLReaders are used to process data from xml files.
Custom readers can be registered through RaveRegisterXMLReader.
Definition at line 719 of file openrave.h.
PE_Pass |
current tag was not supported, so pass onto another class |
PE_Support |
current tag will be processed by this class |
PE_Ignore |
current tag and all its children should be ignored |
Definition at line 722 of file openrave.h.
|
inline |
Definition at line 728 of file openrave.h.
|
inlinevirtual |
Definition at line 730 of file openrave.h.
|
pure virtual |
gets called for all data in between tags.
ch | a string to the data |
Implemented in OpenRAVE::ConfigurationSpecification::Reader, OpenRAVE::DummyXMLReader, OpenRAVE::WorkspaceTrajectoryParameters, OpenRAVE::PlannerBase::PlannerParameters, OpenRAVE::SimpleSensorSystem::SimpleXMLReader, OpenRAVE::xmlreaders::HierarchicalXMLReader, OpenRAVE::xmlreaders::GeometryInfoReader, OpenRAVE::xmlreaders::TrajectoryReader, and cppexamples::CustomController::PIDXMLReader.
|
pure virtual |
Gets called at the end of each "</type>" expression. In this case, name is "type"
name | of the tag, will be always lower case |
Implemented in OpenRAVE::ConfigurationSpecification::Reader, OpenRAVE::DummyXMLReader, OpenRAVE::BasicRRTParameters, OpenRAVE::RRTParameters, OpenRAVE::WorkspaceTrajectoryParameters, OpenRAVE::ConstraintTrajectoryTimingParameters, OpenRAVE::TrajectoryTimingParameters, OpenRAVE::GraspParameters, OpenRAVE::PlannerBase::PlannerParameters, OpenRAVE::GraspSetParameters, OpenRAVE::SimpleSensorSystem::SimpleXMLReader, OpenRAVE::RAStarParameters, OpenRAVE::xmlreaders::HierarchicalXMLReader, OpenRAVE::xmlreaders::GeometryInfoReader, OpenRAVE::ExplorationParameters, OpenRAVE::xmlreaders::TrajectoryReader, and cppexamples::CustomController::PIDXMLReader.
|
inlinevirtual |
a readable interface that stores the information processsed for the current tag This pointer is used to the InterfaceBase class registered readers
Reimplemented in OpenRAVE::SimpleSensorSystem::SimpleXMLReader, OpenRAVE::xmlreaders::HierarchicalXMLReader, and cppexamples::CustomController::PIDXMLReader.
Definition at line 735 of file openrave.h.
|
pure virtual |
Gets called in the beginning of each "<type>" expression. In this case, name is "type"
name | of the tag, will be always lower case |
atts | string of attributes where the first std::string is the attribute name and second is the value |
Implemented in OpenRAVE::ConfigurationSpecification::Reader, OpenRAVE::DummyXMLReader, OpenRAVE::BasicRRTParameters, OpenRAVE::RRTParameters, OpenRAVE::WorkspaceTrajectoryParameters, OpenRAVE::ConstraintTrajectoryTimingParameters, OpenRAVE::TrajectoryTimingParameters, OpenRAVE::GraspParameters, OpenRAVE::PlannerBase::PlannerParameters, OpenRAVE::GraspSetParameters, OpenRAVE::SimpleSensorSystem::SimpleXMLReader, OpenRAVE::RAStarParameters, OpenRAVE::xmlreaders::HierarchicalXMLReader, OpenRAVE::xmlreaders::GeometryInfoReader, OpenRAVE::xmlreaders::TrajectoryReader, OpenRAVE::ExplorationParameters, and cppexamples::CustomController::PIDXMLReader.
std::string OpenRAVE::BaseXMLReader::_filename |
XML filename/resource used for this class (can be empty)
Definition at line 755 of file openrave.h.