Go to the documentation of this file.
22 #include <gz/utils/ImplPtr.hh>
34 inline namespace SDF_VERSION_NAMESPACE {
70 public:
Errors WorldNamesFromFile(
const std::string &_filename,
71 std::vector<std::string> &_worldNames);
78 public:
Errors Load(
const std::string &_filename);
87 const std::string &_filename,
const ParserConfig &_config);
94 public:
Errors LoadSdfString(
const std::string &_sdf);
102 public:
Errors LoadSdfString(
124 public: std::string Version()
const;
129 public:
void SetVersion(
const std::string &_version);
133 public: uint64_t WorldCount()
const;
140 public:
const World *WorldByIndex(
const uint64_t _index)
const;
147 public:
World *WorldByIndex(
const uint64_t _index);
154 public:
const World *WorldByName(
const std::string &_name)
const;
161 public:
World *WorldByName(
const std::string &_name);
166 public:
bool WorldNameExists(
const std::string &_name)
const;
176 public:
void SetModel(
const sdf::Model &_model);
186 public:
void SetLight(
const sdf::Light &_light);
196 public:
void SetActor(
const sdf::Actor &_actor);
213 public:
void ClearWorlds();
227 public:
Errors UpdateGraphs();
239 GZ_UTILS_IMPL_PTR(dataPtr)
std::shared_ptr< SDF > SDFPtr
Definition: SDFImpl.hh:52
This class contains configuration options for SDF output.
Definition: OutputConfig.hh:58
namespace for Simulation Description Format parser
Definition: Actor.hh:34
#define SDFORMAT_VISIBLE
Definition: system_util.hh:25
This class contains configuration options for the libsdformat parser.
Definition: ParserConfig.hh:84
Provides a description of a light source.
Definition: Light.hh:63
class GZ_SDFORMAT_VISIBLE Element
Definition: Element.hh:51
Root class that acts as an entry point to the SDF document model.
Definition: Root.hh:57
Provides a description of an actor.
Definition: Actor.hh:191
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:80
static OutputConfig & GlobalConfig()
Mutable access to a singleton OutputConfig that serves as the global OutputConfig object for all pars...
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:55