Namespaces | Functions
parser.hh File Reference
#include <tinyxml.h>
#include <string>
#include "sdf/SDFImpl.hh"
#include "sdf/system_util.hh"
Include dependency graph for parser.hh:

Go to the source code of this file.

Namespaces

 sdf
 namespace for Simulation Description Format parser
 

Functions

SDFORMAT_VISIBLE void sdf::addNestedModel (ElementPtr _sdf, ElementPtr _includeSDF)
 
SDFORMAT_VISIBLE bool sdf::convertFile (const std::string &_filename, const std::string &_version, SDFPtr _sdf)
 Convert an SDF file to a specific SDF version. More...
 
SDFORMAT_VISIBLE bool sdf::convertString (const std::string &_sdfString, const std::string &_version, SDFPtr _sdf)
 Convert an SDF string to a specific SDF version. More...
 
SDFORMAT_VISIBLE void sdf::copyChildren (ElementPtr _sdf, TiXmlElement *_xml)
 
SDFORMAT_VISIBLE std::string sdf::getBestSupportedModelVersion (TiXmlElement *_modelXML, std::string &_modelFileName)
 Get the best SDF version from models supported by this sdformat. More...
 
SDFORMAT_VISIBLE std::string sdf::getModelFilePath (const std::string &_modelDirPath)
 Get the file path to the model file. More...
 
SDFORMAT_VISIBLE bool sdf::init (SDFPtr _sdf)
 Init based on the installed sdf_format.xml file. More...
 
SDFORMAT_VISIBLE bool sdf::initDoc (TiXmlDocument *_xmlDoc, SDFPtr _sdf)
 
SDFORMAT_VISIBLE bool sdf::initDoc (TiXmlDocument *_xmlDoc, ElementPtr _sdf)
 
SDFORMAT_VISIBLE bool sdf::initFile (const std::string &_filename, SDFPtr _sdf)
 
SDFORMAT_VISIBLE bool sdf::initFile (const std::string &_filename, ElementPtr _sdf)
 
SDFORMAT_VISIBLE bool sdf::initString (const std::string &_xmlString, SDFPtr _sdf)
 
SDFORMAT_VISIBLE bool sdf::initXml (TiXmlElement *_xml, ElementPtr _sdf)
 
SDFORMAT_VISIBLE bool sdf::readDoc (TiXmlDocument *_xmlDoc, SDFPtr _sdf, const std::string &_source)
 Populate the SDF values from a TinyXML document. More...
 
SDFORMAT_VISIBLE bool sdf::readDoc (TiXmlDocument *_xmlDoc, ElementPtr _sdf, const std::string &_source)
 
SDFORMAT_VISIBLE bool sdf::readFile (const std::string &_filename, SDFPtr _sdf)
 Populate the SDF values from a file. More...
 
SDFORMAT_VISIBLE bool sdf::readString (const std::string &_xmlString, SDFPtr _sdf)
 Populate the SDF values from a string. More...
 
SDFORMAT_VISIBLE bool sdf::readString (const std::string &_xmlString, ElementPtr _sdf)
 
SDFORMAT_VISIBLE bool sdf::readXml (TiXmlElement *_xml, ElementPtr _sdf)