21 #include <ignition/utils/ImplPtr.hh> 25 #include "sdf/sdf_config.h" 31 inline namespace SDF_VERSION_NAMESPACE {
64 public:
Errors Load(
const std::string &_filename);
73 const std::string &_filename,
const ParserConfig &_config);
80 public:
Errors LoadSdfString(
const std::string &_sdf);
88 public:
Errors LoadSdfString(
110 public: std::string Version()
const;
115 public:
void SetVersion(
const std::string &_version);
119 public: uint64_t WorldCount()
const;
126 public:
const World *WorldByIndex(
const uint64_t _index)
const;
131 public:
bool WorldNameExists(
const std::string &_name)
const;
143 public:
const sdf::Model *ModelByIndex(
const uint64_t _index)
const 149 public:
bool ModelNameExists(
const std::string &_name)
const 161 public:
const sdf::Model *
Model()
const;
172 public:
const sdf::Light *LightByIndex(
const uint64_t _index)
const 178 public:
bool LightNameExists(
const std::string &_name)
const 191 public:
const sdf::Light *
Light()
const;
202 public:
const sdf::Actor *ActorByIndex(
const uint64_t _index)
const 208 public:
bool ActorNameExists(
const std::string &_name)
const 221 public:
const sdf::Actor *
Actor()
const;
230 IGN_UTILS_UNIQUE_IMPL_PTR(dataPtr)
Provides a description of a light source.
Definition: Light.hh:63
Provides a description of an actor.
Definition: Actor.hh:190
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:98
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:41
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
class SDFORMAT_VISIBLE Element
Definition: Element.hh:49
Root class that acts as an entry point to the SDF document model.
Definition: Root.hh:54
This class contains configuration options for the libsdformat parser.
Definition: ParserConfig.hh:84
namespace for Simulation Description Format parser
Definition: Actor.hh:33
#define SDF_DEPRECATED(version)
Definition: Types.hh:39
std::shared_ptr< SDF > SDFPtr
Definition: SDFImpl.hh:51