Go to the documentation of this file.
23 #include <gz/utils/ImplPtr.hh>
31 #pragma warning(disable: 4251)
37 inline namespace SDF_VERSION_NAMESPACE {
161 public:
Error(
const ErrorCode _code,
const std::string &_message);
169 const std::string &_filePath);
179 const std::string &_filePath,
int _lineNumber);
188 public: std::string Message()
const;
193 public: std::optional<std::string> FilePath()
const;
198 public:
void SetFilePath(
const std::string &_filePath);
202 public: std::optional<int> LineNumber()
const;
206 public:
void SetLineNumber(
int _lineNumber);
211 public: std::optional<std::string> XmlPath()
const;
217 public:
void SetXmlPath(
const std::string &_xmlPath);
222 public:
explicit operator bool()
const;
231 public:
bool operator==(
const bool _value)
const;
241 IGN_UTILS_IMPL_PTR(dataPtr)
@ MODEL_PLACEMENT_FRAME_INVALID
The specified placement frame is invalid.
@ VERSION_DEPRECATED
The provided version has been deprecated or it is pre-versioning.
@ DIRECTORY_NONEXISTANT
A filesystem directory does not exist.
@ JOINT_CHILD_LINK_INVALID
A joint has an invalid child link.
@ ELEMENT_DEPRECATED
This error indicates that an SDF element is deprecated.
@ ATTRIBUTE_INVALID
This error indicates that an SDF attribute is invalid.
@ FRAME_ATTACHED_TO_INVALID
The frame attached-to value does not match the name of an existing frame in the current scope.
namespace for Simulation Description Format parser
Definition: Actor.hh:34
@ ELEMENT_INVALID
This error indicates that an SDF element is invalid.
@ FRAME_ATTACHED_TO_CYCLE
The frame attached-to graph contains a cycle.
@ ELEMENT_INCORRECT_TYPE
Indicates that an incorrect SDF element type was encountered.
@ NESTED_MODELS_UNSUPPORTED
Indicates that a DOM object tried to read a nested model.
@ FILE_READ
Indicates that reading an SDF file failed.
@ ATTRIBUTE_DEPRECATED
This error indicates that an SDF attribute is deprecated.
#define SDFORMAT_VISIBLE
Definition: system_util.hh:25
@ ATTRIBUTE_MISSING
Indicates that a required SDF attribute is missing.
@ JOINT_PARENT_SAME_AS_CHILD
A joint has the same link specified as parent and child.
@ URI_INVALID
A URI is invalid.
@ URI_LOOKUP
A error occured while trying to resolve a URI.
std::ostream & operator<<(std::ostream &os, ParamStreamer< T > s)
Definition: Param.hh:83
@ POSE_RELATIVE_TO_INVALID
The pose relative-to value does not match the name of an existing frame in the current scope.
@ STRING_READ
Indicates that reading an SDF string failed.
@ POSE_RELATIVE_TO_GRAPH_ERROR
The pose relative-to graph has an internal error.
@ ELEMENT_MISSING
Indicates that a required SDF element is missing.
ErrorCode
Definition: Error.hh:46
@ JOINT_PARENT_LINK_INVALID
A joint has an invalid parent link.
@ DUPLICATE_NAME
A duplicate name was found for an element where unique names are required.
@ MERGE_INCLUDE_UNSUPPORTED
Merge include is unspported for the type of entity being included, or the custom parser does not supp...
@ MODEL_CANONICAL_LINK_INVALID
A model with an invalid canonical link.
@ MODEL_WITHOUT_LINK
A model without a link.
@ ATTRIBUTE_INCORRECT_TYPE
Indicates an attribute was included that is not part of the sdf spec.
@ RESERVED_NAME
A reserved name was used in an entity name attribute.
@ FRAME_ATTACHED_TO_GRAPH_ERROR
The frame attached-to graph has an internal error.
@ LINK_INERTIA_INVALID
A link has invalid inertia.
@ POSE_RELATIVE_TO_CYCLE
The pose relative-to graph contains a cycle.