Go to the documentation of this file.
28 #include "sdf/sdf_config.h"
35 #pragma warning(disable: 4251)
43 inline namespace SDF_VERSION_NAMESPACE {
78 std::string
findFile(
const std::string &_filename,
79 bool _searchLocalPath =
true,
80 bool _useCallback =
false);
96 std::string
findFile(
const std::string &_filename,
97 bool _searchLocalPath,
107 void addURIPath(
const std::string &_uri,
const std::string &_path);
114 void setFindCallback(std::function<std::string (
const std::string &)> _cb);
122 public:
void PrintDescription();
123 public:
void PrintValues();
124 public:
void PrintDoc();
125 public:
void Write(
const std::string &_filename);
126 public: std::string ToString()
const;
129 public:
void SetFromString(
const std::string &_sdfData);
132 public:
void Clear();
144 public: std::string FilePath()
const;
148 public:
void SetFilePath(
const std::string &_path);
152 public:
void SetOriginalVersion(
const std::string &_version);
156 public:
const std::string &OriginalVersion()
const;
160 public:
static std::string Version();
164 public:
static void Version(
const std::string &_version);
184 public:
static const std::string &EmbeddedSpec(
185 const std::string &_filename,
const bool _quiet);
189 private: std::unique_ptr<SDFPrivate> dataPtr;
193 private:
static std::string version;
class SDFORMAT_VISIBLE SDF
Definition: SDFImpl.hh:46
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
namespace for Simulation Description Format parser
Definition: Actor.hh:33
SDFORMAT_VISIBLE void setFindCallback(std::function< std::string(const std::string &)> _cb)
Set the callback to use when SDF can't find a file.
This class contains configuration options for the libsdformat parser.
Definition: ParserConfig.hh:84
#define SDFORMAT_VISIBLE
Definition: system_util.hh:41
SDFORMAT_VISIBLE std::string findFile(const std::string &_filename, bool _searchLocalPath=true, bool _useCallback=false)
Find the absolute path of a file.
Root class that acts as an entry point to the SDF document model.
Definition: Root.hh:54
std::shared_ptr< SDF > SDFPtr
Definition: SDFImpl.hh:51
SDFORMAT_VISIBLE void addURIPath(const std::string &_uri, const std::string &_path)
Associate paths to a URI.
Base SDF class.
Definition: SDFImpl.hh:117