Go to the documentation of this file.
29 #include "sdf/sdf_config.h"
36 #pragma warning(disable: 4251)
44 inline namespace SDF_VERSION_NAMESPACE {
79 std::string
findFile(
const std::string &_filename,
80 bool _searchLocalPath =
true,
81 bool _useCallback =
false);
97 std::string
findFile(
const std::string &_filename,
98 bool _searchLocalPath,
108 void addURIPath(
const std::string &_uri,
const std::string &_path);
115 void setFindCallback(std::function<std::string (
const std::string &)> _cb);
123 public:
void PrintDescription();
124 public:
void PrintDoc();
125 public:
void Write(
const std::string &_filename);
134 public: std::string ToString(
138 public:
void SetFromString(
const std::string &_sdfData);
141 public:
void Clear();
153 public: std::string FilePath()
const;
157 public:
void SetFilePath(
const std::string &_path);
161 public:
void SetOriginalVersion(
const std::string &_version);
165 public:
const std::string &OriginalVersion()
const;
169 public:
static std::string Version();
173 public:
static void Version(
const std::string &_version);
193 public:
static const std::string &EmbeddedSpec(
194 const std::string &_filename,
const bool _quiet);
198 private: std::unique_ptr<SDFPrivate> dataPtr;
202 private:
static std::string version;
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
void addURIPath(const std::string &_uri, const std::string &_path)
Associate paths to a URI.
namespace for Simulation Description Format parser
Definition: Actor.hh:33
Base SDF class.
Definition: SDFImpl.hh:118
#define SDFORMAT_VISIBLE
Definition: system_util.hh:41
std::shared_ptr< SDF > SDFPtr
Definition: SDFImpl.hh:52
This class contains configuration options for printing elements.
Definition: PrintConfig.hh:31
Root class that acts as an entry point to the SDF document model.
Definition: Root.hh:54
std::string findFile(const std::string &_filename, bool _searchLocalPath=true, bool _useCallback=false)
Find the absolute path of a file.
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:54