33#pragma warning(disable: 4251)
57 std::string
findFile(
const std::string &_filename,
58 bool _searchLocalPath =
true,
59 bool _useCallback =
false);
66 void addURIPath(
const std::string &_uri,
const std::string &_path);
86 public:
void Write(
const std::string &_filename);
106 public:
static void Version(
const std::string &_version);
115 private: std::unique_ptr<SDFPrivate> dataPtr;
119 private:
static std::string version;
Private data for base SDF class.
Definition SDFImplPrivate.hh:28
Base SDF class.
Definition SDFImpl.hh:79
void Write(const std::string &_filename)
static void Version(const std::string &_version)
Set the version string.
void Root(const ElementPtr _root)
Set the root pointer.
static std::string Version()
Get the version.
static ElementPtr WrapInRoot(const ElementPtr &_sdf)
wraps the SDF element into a root element with the version info.
void SetFromString(const std::string &_sdfData)
Set SDF values from a string.
std::string ToString() const
ElementPtr Root() const
Get a pointer to the root element.
SDFORMAT_VISIBLE void addURIPath(const std::string &_uri, const std::string &_path)
Associate paths to a URI.
SDFORMAT_VISIBLE void setFindCallback(std::function< std::string(const std::string &)> _cb)
Set the callback to use when SDF can't find a file.
SDFORMAT_VISIBLE std::string findFile(const std::string &_filename, bool _searchLocalPath=true, bool _useCallback=false)
Find the absolute path of a file.
namespace for Simulation Description Format parser
Definition Console.hh:36
std::shared_ptr< SDF > SDFPtr
Definition SDFImpl.hh:44
std::shared_ptr< Element > ElementPtr
Definition Element.hh:47
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition system_util.hh:48