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);
125 public:
void Write(
const std::string &_filename);
158 public: std::
string FilePath() const;
162 public:
void SetFilePath(const std::
string &_path);
166 public:
void SetOriginalVersion(const std::
string &_version);
170 public: const std::
string &OriginalVersion() const;
174 public: static std::
string Version();
178 public: static
void Version(const std::
string &_version);
198 public: static const std::
string &EmbeddedSpec(
199 const std::
string &_filename, const
bool _quiet);
203 private: std::unique_ptr<SDFPrivate> dataPtr;
207 private: static std::
string version;
This class contains configuration options for the libsdformat parser.
Definition: ParserConfig.hh:100
This class contains configuration options for printing elements.
Definition: PrintConfig.hh:33
Root class that acts as an entry point to the SDF document model.
Definition: Root.hh:58
Base SDF class.
Definition: SDFImpl.hh:119
void Write(const std::string &_filename)
void PrintValues(const PrintConfig &_config=PrintConfig())
Output SDF's values to stdout.
void SetRoot(const ElementPtr _root)
Set the root pointer.
ElementPtr Root() const
Get a pointer to the root element.
void SetFromString(const std::string &_sdfData)
Set SDF values from a string.
void Clear()
Clear the data in this object.
GZ_DEPRECATED(13) void Root(const ElementPtr _root)
Set the root pointer.
std::string ToString(const PrintConfig &_config=PrintConfig()) const
Convert the SDF values to a string representation.
GZ_SDFORMAT_VISIBLE void setFindCallback(std::function< std::string(const std::string &)> _cb)
Set the callback to use when SDF can't find a file.
GZ_SDFORMAT_VISIBLE std::string findFile(const std::string &_filename, bool _searchLocalPath=true, bool _useCallback=false)
Find the absolute path of a file.
GZ_SDFORMAT_VISIBLE void addURIPath(const std::string &_uri, const std::string &_path)
Associate paths to a URI.
std::shared_ptr< SDF > SDFPtr
Definition: SDFImpl.hh:52
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:55
namespace for Simulation Description Format parser
Definition: Actor.hh:35
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:25