openrave.org

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

#include <xmlreaders.h>

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

Public Member Functions

 StreamXMLWriter (const std::string &xmltag, const AttributesList &atts=AttributesList())
 
const std::string & GetFormat () const
 return the format for the data writing, should be all lower capitals.
 
virtual void SetCharData (const std::string &data)
 saves character data to the child. Special characters like '<' are automatically converted to fit inside XML.
 
virtual BaseXMLWriterPtr AddChild (const std::string &xmltag, const AttributesList &atts=AttributesList())
 returns a writer for child elements
 
virtual void Serialize (std::ostream &stream)
 
- Public Member Functions inherited from OpenRAVE::BaseXMLWriter
virtual ~BaseXMLWriter ()
 

Public Attributes

std::list< boost::shared_ptr
< StreamXMLWriter > > 
_listchildren
 
std::string _xmltag
 
std::string _data
 
AttributesList _atts
 

Detailed Description

Definition at line 138 of file xmlreaders.h.

Constructor & Destructor Documentation

OpenRAVE::xmlreaders::StreamXMLWriter::StreamXMLWriter ( const std::string &  xmltag,
const AttributesList atts = AttributesList() 
)

Member Function Documentation

virtual BaseXMLWriterPtr OpenRAVE::xmlreaders::StreamXMLWriter::AddChild ( const std::string &  xmltag,
const AttributesList atts = AttributesList() 
)
virtual

returns a writer for child elements

Implements OpenRAVE::BaseXMLWriter.

const std::string& OpenRAVE::xmlreaders::StreamXMLWriter::GetFormat ( ) const
virtual

return the format for the data writing, should be all lower capitals.

Samples formats are 'openrave', 'collada'

Implements OpenRAVE::BaseXMLWriter.

virtual void OpenRAVE::xmlreaders::StreamXMLWriter::Serialize ( std::ostream &  stream)
virtual
virtual void OpenRAVE::xmlreaders::StreamXMLWriter::SetCharData ( const std::string &  data)
virtual

saves character data to the child. Special characters like '<' are automatically converted to fit inside XML.

Exceptions
openrave_exceptionthrows if this element cannot have character data or the character data was not written

Implements OpenRAVE::BaseXMLWriter.

Member Data Documentation

AttributesList OpenRAVE::xmlreaders::StreamXMLWriter::_atts

Definition at line 149 of file xmlreaders.h.

std::string OpenRAVE::xmlreaders::StreamXMLWriter::_data

Definition at line 148 of file xmlreaders.h.

std::list<boost::shared_ptr<StreamXMLWriter> > OpenRAVE::xmlreaders::StreamXMLWriter::_listchildren

Definition at line 147 of file xmlreaders.h.

std::string OpenRAVE::xmlreaders::StreamXMLWriter::_xmltag

Definition at line 148 of file xmlreaders.h.


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