create a xml parser for trajectories More...
#include <xmlreaders.h>
Public Member Functions | |
TrajectoryReader (EnvironmentBasePtr env, TrajectoryBasePtr traj=TrajectoryBasePtr(), const AttributesList &atts=AttributesList()) | |
virtual ProcessElement | startElement (const std::string &name, const AttributesList &atts) |
virtual bool | endElement (const std::string &name) |
virtual void | characters (const std::string &ch) |
TrajectoryBasePtr | GetTrajectory () const |
![]() | |
BaseXMLReader () | |
virtual | ~BaseXMLReader () |
virtual XMLReadablePtr | GetReadable () |
Protected Attributes | |
TrajectoryBasePtr | _ptraj |
std::stringstream | _ss |
ConfigurationSpecification | _spec |
BaseXMLReaderPtr | _pcurreader |
int | _datacount |
std::vector< dReal > | _vdata |
bool | _bInReadable |
Additional Inherited Members | |
![]() | |
enum | ProcessElement { PE_Pass =0, PE_Support =1, PE_Ignore =2 } |
![]() | |
std::string | _filename |
XML filename/resource used for this class (can be empty) | |
create a xml parser for trajectories
Definition at line 59 of file xmlreaders.h.
OpenRAVE::xmlreaders::TrajectoryReader::TrajectoryReader | ( | EnvironmentBasePtr | env, |
TrajectoryBasePtr | traj = TrajectoryBasePtr() , |
||
const AttributesList & | atts = AttributesList() |
||
) |
env | the environment used to create the trajectory |
traj | can optionally pass a trajectory to initialize if need to read into an existing trajectory, but the pointer can be empty |
atts | attributes passed from <trajectory> tag |
|
virtual |
gets called for all data in between tags.
ch | a string to the data |
Implements OpenRAVE::BaseXMLReader.
|
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 |
Implements OpenRAVE::BaseXMLReader.
|
inline |
Definition at line 70 of file xmlreaders.h.
|
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 |
Implements OpenRAVE::BaseXMLReader.
|
protected |
Definition at line 81 of file xmlreaders.h.
|
protected |
Definition at line 79 of file xmlreaders.h.
|
protected |
Definition at line 78 of file xmlreaders.h.
|
protected |
Definition at line 75 of file xmlreaders.h.
|
protected |
Definition at line 77 of file xmlreaders.h.
|
protected |
Definition at line 76 of file xmlreaders.h.
|
protected |
Definition at line 80 of file xmlreaders.h.