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

#include <sensorsystem.h>

Inheritance diagram for OpenRAVE::SimpleSensorSystem::SimpleXMLReader:
Inheritance graph
Collaboration diagram for OpenRAVE::SimpleSensorSystem::SimpleXMLReader:
Collaboration graph

Public Member Functions

 SimpleXMLReader (boost::shared_ptr< XMLData >)
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_pdata
std::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 155 of file sensorsystem.h.

Constructor & Destructor Documentation

OpenRAVE::SimpleSensorSystem::SimpleXMLReader::SimpleXMLReader ( boost::shared_ptr< XMLData p)

Definition at line 21 of file sensorsystem.cpp.

Member Function Documentation

void OpenRAVE::SimpleSensorSystem::SimpleXMLReader::characters ( const std::string &  ch)

gets called for all data in between tags.

cha string to the data

Implements OpenRAVE::BaseXMLReader.

Definition at line 86 of file sensorsystem.cpp.

bool OpenRAVE::SimpleSensorSystem::SimpleXMLReader::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 34 of file sensorsystem.cpp.

virtual XMLReadablePtr OpenRAVE::SimpleSensorSystem::SimpleXMLReader::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 159 of file sensorsystem.h.

BaseXMLReader::ProcessElement OpenRAVE::SimpleSensorSystem::SimpleXMLReader::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 25 of file sensorsystem.cpp.

Member Data Documentation

boost::shared_ptr<XMLData> OpenRAVE::SimpleSensorSystem::SimpleXMLReader::_pdata

Definition at line 167 of file sensorsystem.h.

std::stringstream OpenRAVE::SimpleSensorSystem::SimpleXMLReader::ss

Definition at line 168 of file sensorsystem.h.

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