17 #ifndef SDF_PARSER_PRIVATE_HH_ 18 #define SDF_PARSER_PRIVATE_HH_ 25 #include "sdf/sdf_config.h" 33 inline namespace SDF_VERSION_NAMESPACE {
42 std::string &_modelFileName);
54 bool readDoc(TiXmlDocument *_xmlDoc,
SDFPtr _sdf,
const std::string &_source,
55 bool _convert,
Errors &_errors);
58 const std::string &_source,
bool _convert,
Errors &_errors);
74 const bool _onlyUnknown);
bool readDoc(TiXmlDocument *_xmlDoc, ElementPtr _sdf, const std::string &_source, bool _convert, Errors &_errors)
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:51
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:74
bool initXml(TiXmlElement *_xml, ElementPtr _sdf)
For internal use only. Do not use this function.
std::string getBestSupportedModelVersion(TiXmlElement *_modelXML, std::string &_modelFileName)
Get the best SDF version from models supported by this sdformat.
bool initDoc(TiXmlDocument *_xmlDoc, ElementPtr _sdf)
Initialize and SDF Element using a TinyXML document.
bool readXml(TiXmlElement *_xml, ElementPtr _sdf, Errors &_errors)
For internal use only.
std::shared_ptr< SDF > SDFPtr
Definition: SDFImpl.hh:50
namespace for Simulation Description Format parser
Definition: AirPressure.hh:25
void copyChildren(ElementPtr _sdf, TiXmlElement *_xml, const bool _onlyUnknown)
Copy child XML elements into the _sdf element.