RobWorkProject  24.5.15-
Classes | Static Public Member Functions | List of all members
XMLPathSaver Class Reference

Class used for saving a Path using the RobWork XML Path Format. More...

#include <XMLPathSaver.hpp>

Classes

class  Initializer
 Utility class which initializes local static variables. More...
 

Static Public Member Functions

static void save (const rw::trajectory::QPath &path, const std::string &filename)
 Saves the rw::trajectory::QPath path to file. More...
 
static void save (const rw::trajectory::Vector3DPath &path, const std::string &filename)
 Saves rw::trajectory::Vector3DPath path to file. More...
 
static void save (const rw::trajectory::Rotation3DPath &path, const std::string &filename)
 Saves rw::trajectory::Rotation3DPath path to file. More...
 
static void save (const rw::trajectory::Transform3DPath &path, const std::string &filename)
 Saves rw::trajectory::Transform3DPath path to file. More...
 
static void save (const rw::trajectory::StatePath &path, const std::string &filename)
 Saves rw::trajectory::StatePath to file. More...
 
static void save (const rw::trajectory::TimedQPath &path, const std::string &filename)
 Saves rw::trajectory::TimedQPath to file. More...
 
static void save (const rw::trajectory::TimedStatePath &path, const std::string &filename)
 Saves rw::trajectory::TimedStatePath to file. More...
 
static void write (const rw::trajectory::QPath &path, std::ostream &outstream)
 Writes the rw::trajectory::QPath path to outstream. More...
 
static void write (const rw::trajectory::Vector3DPath &path, std::ostream &outstream)
 Writes rw::trajectory::Vector3DPath path to outstream. More...
 
static void write (const rw::trajectory::Rotation3DPath &path, std::ostream &outstream)
 Writes rw::trajectory::Rotation3DPath path to outstream. More...
 
static void write (const rw::trajectory::Transform3DPath &path, std::ostream &outstream)
 Writes rw::trajectory::Rotation3DPath path to outstream. More...
 
static void write (const rw::trajectory::StatePath &path, std::ostream &outstream)
 Writes rw::trajectory::Rotation3DPath path to outstream. More...
 
static void write (const rw::trajectory::TimedQPath &path, std::ostream &outstream)
 Writes rw::trajectory::Rotation3DPath path to outstream. More...
 
static void write (const rw::trajectory::TimedStatePath &path, std::ostream &outstream)
 Writes rw::trajectory::Rotation3DPath path to outstream. More...
 
template<class T , class PATH >
static xercesc::DOMElement * createElement (const PATH &path, const XMLCh *pathId, xercesc::DOMDocument *doc)
 Create an element representing the path. More...
 

Detailed Description

Class used for saving a Path using the RobWork XML Path Format.

Specification of the XML-format can be found in rwxml_path.xsd and matching with XMLPathLoader

Member Function Documentation

◆ createElement()

static xercesc::DOMElement* createElement ( const PATH &  path,
const XMLCh *  pathId,
xercesc::DOMDocument *  doc 
)
inlinestatic

Create an element representing the path.

Create an element titles pathId representing path

Parameters
path[in] Path to save. Can be either QPath, Vector3DPath, Rotation3DPath or Transform3DPath
pathId[in] Id of the path
doc[in] Document for which to construct the element

◆ save() [1/7]

static void save ( const rw::trajectory::QPath path,
const std::string &  filename 
)
static

Saves the rw::trajectory::QPath path to file.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
filename[in] Target filename

◆ save() [2/7]

static void save ( const rw::trajectory::Rotation3DPath path,
const std::string &  filename 
)
static

Saves rw::trajectory::Rotation3DPath path to file.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
filename[in] Target filename

◆ save() [3/7]

static void save ( const rw::trajectory::StatePath path,
const std::string &  filename 
)
static

Saves rw::trajectory::StatePath to file.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
filename[in] Target filename

◆ save() [4/7]

static void save ( const rw::trajectory::TimedQPath path,
const std::string &  filename 
)
static

Saves rw::trajectory::TimedQPath to file.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
filename[in] Target filename

◆ save() [5/7]

static void save ( const rw::trajectory::TimedStatePath path,
const std::string &  filename 
)
static

Saves rw::trajectory::TimedStatePath to file.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
filename[in] Target filename

◆ save() [6/7]

static void save ( const rw::trajectory::Transform3DPath path,
const std::string &  filename 
)
static

Saves rw::trajectory::Transform3DPath path to file.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
filename[in] Target filename

◆ save() [7/7]

static void save ( const rw::trajectory::Vector3DPath path,
const std::string &  filename 
)
static

Saves rw::trajectory::Vector3DPath path to file.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
filename[in] Target filename

◆ write() [1/7]

static void write ( const rw::trajectory::QPath path,
std::ostream &  outstream 
)
static

Writes the rw::trajectory::QPath path to outstream.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
outstream[in] Stream to write to

◆ write() [2/7]

static void write ( const rw::trajectory::Rotation3DPath path,
std::ostream &  outstream 
)
static

Writes rw::trajectory::Rotation3DPath path to outstream.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
outstream[in] Stream to write to

◆ write() [3/7]

static void write ( const rw::trajectory::StatePath path,
std::ostream &  outstream 
)
static

Writes rw::trajectory::Rotation3DPath path to outstream.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
outstream[in] Stream to write to

◆ write() [4/7]

static void write ( const rw::trajectory::TimedQPath path,
std::ostream &  outstream 
)
static

Writes rw::trajectory::Rotation3DPath path to outstream.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
outstream[in] Stream to write to

◆ write() [5/7]

static void write ( const rw::trajectory::TimedStatePath path,
std::ostream &  outstream 
)
static

Writes rw::trajectory::Rotation3DPath path to outstream.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
outstream[in] Stream to write to

◆ write() [6/7]

static void write ( const rw::trajectory::Transform3DPath path,
std::ostream &  outstream 
)
static

Writes rw::trajectory::Rotation3DPath path to outstream.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save
outstream[in] Stream to write to

◆ write() [7/7]

static void write ( const rw::trajectory::Vector3DPath path,
std::ostream &  outstream 
)
static

Writes rw::trajectory::Vector3DPath path to outstream.

If an error occurs while saving a rw::core::Exception is thrown

Parameters
path[in] Path to save8
outstream[in] Stream to write to

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