openrave.org

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

reads until the tag ends More...

#include <openrave.h>

Inheritance diagram for OpenRAVE::DummyXMLReader:
Inheritance graph
[legend]
Collaboration diagram for OpenRAVE::DummyXMLReader:
Collaboration graph
[legend]

Public Member Functions

 DummyXMLReader (const std::string &fieldname, const std::string &parentname, boost::shared_ptr< std::ostream > osrecord=boost::shared_ptr< std::ostream >())
 
virtual ProcessElement startElement (const std::string &name, const AttributesList &atts)
 
virtual bool endElement (const std::string &name)
 
virtual void characters (const std::string &ch)
 
const std::string & GetFieldName () const
 
virtual boost::shared_ptr
< std::ostream > 
GetStream () const
 
- Public Member Functions inherited from OpenRAVE::BaseXMLReader
 BaseXMLReader ()
 
virtual ~BaseXMLReader ()
 
virtual XMLReadablePtr GetReadable ()
 

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 until the tag ends

Definition at line 761 of file openrave.h.

Constructor & Destructor Documentation

OpenRAVE::DummyXMLReader::DummyXMLReader ( const std::string &  fieldname,
const std::string &  parentname,
boost::shared_ptr< std::ostream >  osrecord = boost::shared_ptr<std::ostream>() 
)

Definition at line 1773 of file libopenrave.cpp.

Member Function Documentation

void OpenRAVE::DummyXMLReader::characters ( const std::string &  ch)
virtual

gets called for all data in between tags.

Parameters
cha string to the data

Implements OpenRAVE::BaseXMLReader.

Definition at line 1821 of file libopenrave.cpp.

bool OpenRAVE::DummyXMLReader::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.

Definition at line 1802 of file libopenrave.cpp.

const std::string& OpenRAVE::DummyXMLReader::GetFieldName ( ) const
inline

Definition at line 768 of file openrave.h.

virtual boost::shared_ptr<std::ostream> OpenRAVE::DummyXMLReader::GetStream ( ) const
inlinevirtual

Definition at line 771 of file openrave.h.

BaseXMLReader::ProcessElement OpenRAVE::DummyXMLReader::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.

Definition at line 1780 of file libopenrave.cpp.


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