Go to the documentation of this file.
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);
107 const std::string &_filename,
108 bool _searchLocalPath =
true,
109 bool _useCallback =
false);
125 std::string
findFile(
const std::string &_filename,
126 bool _searchLocalPath,
146 const std::string &_filename,
147 bool _searchLocalPath,
156 void addURIPath(
const std::string &_uri,
const std::string &_path);
163 void setFindCallback(std::function<std::string (
const std::string &)> _cb);
171 public:
void PrintDescription();
172 public:
void PrintDescription(
sdf::Errors &_errors);
173 public:
void PrintDoc();
174 public:
void Write(
const std::string &_filename);
175 public:
void Write(
sdf::Errors &_errors,
const std::string &_filename);
190 public: std::string ToString(
197 public: std::string ToString(
203 public:
void SetFromString(
const std::string &_sdfData);
209 const std::string &_sdfData);
212 public:
void Clear();
229 public: std::string FilePath()
const;
233 public:
void SetFilePath(
const std::string &_path);
237 public:
void SetOriginalVersion(
const std::string &_version);
241 public:
const std::string &OriginalVersion()
const;
245 public:
static std::string Version();
249 public:
static void Version(
const std::string &_version);
276 public:
static const std::string &EmbeddedSpec(
277 const std::string &_filename,
const bool _quiet);
292 public:
static const std::string &EmbeddedSpec(
293 sdf::Errors &_errors,
const std::string &_filename);
297 private: std::unique_ptr<SDFPrivate> dataPtr;
301 private:
static std::string version;
class GZ_SDFORMAT_VISIBLE GZ_DEPRECATED(13) Inertia
A class for inertial information about a link.
Definition: Types.hh:147
std::shared_ptr< SDF > SDFPtr
Definition: SDFImpl.hh:52
GZ_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: Actor.hh:34
Base SDF class.
Definition: SDFImpl.hh:166
This class contains configuration options for printing elements.
Definition: PrintConfig.hh:32
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 void addURIPath(const std::string &_uri, const std::string &_path)
Associate paths to a URI.
#define SDFORMAT_VISIBLE
Definition: system_util.hh:25
This class contains configuration options for the libsdformat parser.
Definition: ParserConfig.hh:84
Root class that acts as an entry point to the SDF document model.
Definition: Root.hh:57
class GZ_SDFORMAT_VISIBLE SDF
Definition: SDFImpl.hh:47
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:80
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:55