All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
cppexamples::CustomController::PIDXMLReader Class Reference
Inheritance diagram for cppexamples::CustomController::PIDXMLReader:
Inheritance graph
Collaboration diagram for cppexamples::CustomController::PIDXMLReader:
Collaboration graph

Public Member Functions

 PIDXMLReader (boost::shared_ptr< XMLData > piddata, const AttributesList &atts)
virtual XMLReadablePtr GetReadable ()
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 ()

Protected Attributes

boost::shared_ptr< XMLData_piddata
stringstream _ss

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 27 of file customreader.cpp.

Constructor & Destructor Documentation

cppexamples::CustomController::PIDXMLReader::PIDXMLReader ( boost::shared_ptr< XMLData piddata,
const AttributesList atts 

Definition at line 30 of file customreader.cpp.

Member Function Documentation

virtual void cppexamples::CustomController::PIDXMLReader::characters ( const std::string &  ch)

gets called for all data in between tags.

cha string to the data

Implements OpenRAVE::BaseXMLReader.

Definition at line 64 of file customreader.cpp.

virtual bool cppexamples::CustomController::PIDXMLReader::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.

Definition at line 48 of file customreader.cpp.

virtual XMLReadablePtr cppexamples::CustomController::PIDXMLReader::GetReadable ( )

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.

Definition at line 39 of file customreader.cpp.

virtual ProcessElement cppexamples::CustomController::PIDXMLReader::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.

Definition at line 43 of file customreader.cpp.

Member Data Documentation

boost::shared_ptr<XMLData> cppexamples::CustomController::PIDXMLReader::_piddata

Definition at line 71 of file customreader.cpp.

stringstream cppexamples::CustomController::PIDXMLReader::_ss

Definition at line 72 of file customreader.cpp.

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