21#include <ignition/utils/ImplPtr.hh>
25#include "sdf/sdf_config.h"
31 inline namespace SDF_VERSION_NAMESPACE {
73 const std::string &_filename,
const ParserConfig &_config);
155 IGN_UTILS_UNIQUE_IMPL_PTR(dataPtr)
Provides a description of an actor.
Definition: Actor.hh:191
Provides a description of a light source.
Definition: Light.hh:64
This class contains configuration options for the libsdformat parser.
Definition: ParserConfig.hh:85
Root class that acts as an entry point to the SDF document model.
Definition: Root.hh:55
Root()
Default constructor.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was generated during load.
Errors LoadSdfString(const std::string &_sdf)
Parse the given SDF string, and generate objects based on types specified in the SDF file.
const World * WorldByIndex(const uint64_t _index) const
Get a world based on an index.
const sdf::Model * Model() const
Get a pointer to the model object if it exists.
const sdf::Light * Light() const
Get a pointer to the light object if it exists.
Errors LoadSdfString(const std::string &_sdf, const ParserConfig &_config)
Parse the given SDF string, and generate objects based on types specified in the SDF file.
Errors Load(const SDFPtr _sdf)
Parse the given SDF pointer, and generate objects based on types specified in the SDF file.
const sdf::Actor * Actor() const
Get a pointer to the actor object if it exists.
Errors Load(const std::string &_filename)
Parse the given SDF file, and generate objects based on types specified in the SDF file.
std::string Version() const
Get the SDF version specified in the parsed file or SDF pointer.
bool WorldNameExists(const std::string &_name) const
Get whether a world name exists.
Errors Load(const std::string &_filename, const ParserConfig &_config)
Parse the given SDF file, and generate objects based on types specified in the SDF file.
void SetVersion(const std::string &_version)
Set the SDF version string.
Errors Load(const SDFPtr _sdf, const ParserConfig &_config)
Parse the given SDF pointer, and generate objects based on types specified in the SDF file.
uint64_t WorldCount() const
Get the number of worlds.
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:106
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:54
std::shared_ptr< SDF > SDFPtr
Definition: SDFImpl.hh:52
namespace for Simulation Description Format parser
Definition: Actor.hh:34
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:41