24 #include "sdf/sdf_config.h" 30 inline namespace SDF_VERSION_NAMESPACE {
67 public:
Errors Load(
const std::string &_filename);
74 public:
Errors LoadSdfString(
const std::string &_sdf);
87 public: std::string Version()
const;
92 public:
void SetVersion(
const std::string &_version);
96 public: uint64_t WorldCount()
const;
103 public:
const World *WorldByIndex(
const uint64_t _index)
const;
108 public:
bool WorldNameExists(
const std::string &_name)
const;
112 public: uint64_t ModelCount()
const;
119 public:
const Model *ModelByIndex(
const uint64_t _index)
const;
124 public:
bool ModelNameExists(
const std::string &_name)
const;
128 public: uint64_t LightCount()
const;
135 public:
const Light *LightByIndex(
const uint64_t _index)
const;
140 public:
bool LightNameExists(
const std::string &_name)
const;
144 public: uint64_t ActorCount()
const;
151 public:
const Actor *ActorByIndex(
const uint64_t _index)
const;
156 public:
bool ActorNameExists(
const std::string &_name)
const;
165 private: RootPrivate *dataPtr =
nullptr;
class SDFORMAT_VISIBLE Element
Definition: Element.hh:49
std::shared_ptr< SDF > SDFPtr
Definition: SDFImpl.hh:50
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
Root class that acts as an entry point to the SDF document model.
Definition: Root.hh:54
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:74
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
Provides a description of a light source.
Definition: Light.hh:62
namespace for Simulation Description Format parser
Definition: Actor.hh:32
Provides a description of an actor.
Definition: Actor.hh:277