#include <Element.hh>
|
void | PrintAttributes (bool _includeDefaultAttributes, const PrintConfig &_config, std::ostringstream &_out) const |
| Generate the string (XML) for the attributes. More...
|
|
◆ PrintAttributes()
void sdf::v12::ElementPrivate::PrintAttributes |
( |
bool |
_includeDefaultAttributes, |
|
|
const PrintConfig & |
_config, |
|
|
std::ostringstream & |
_out |
|
) |
| const |
Generate the string (XML) for the attributes.
- Parameters
-
[in] | _includeDefaultAttributes | flag to include default attributes. |
[in] | _config | Configuration for printing attributes. |
[out] | _out | the std::ostringstream to write output to. |
◆ attributes
Param_V sdf::v12::ElementPrivate::attributes |
◆ copyChildren
bool sdf::v12::ElementPrivate::copyChildren |
True if element's children should be copied.
◆ description
std::string sdf::v12::ElementPrivate::description |
◆ elementDescriptions
◆ elements
◆ explicitlySetInFile
bool sdf::v12::ElementPrivate::explicitlySetInFile |
True if the element was set in the SDF file.
◆ includeElement
ElementPtr sdf::v12::ElementPrivate::includeElement |
The element that was used to load this entity.
For example, given the following SDFormat: <sdf version='1.8'> <world name='default'> <uri>model_uri</uri> <pose>1 2 3 0 0 0</pose> </world> </sdf> The ElementPtr associated with the model loaded from model_uri
will have the includeElement set to <uri>model_uri</uri> <pose>1 2 3 0 0 0</pose>
This can be used to retrieve additional information available under the tag after the entity has been loaded. An example use case for this is when saving a loaded world back to SDFormat.
◆ lineNumber
std::optional<int> sdf::v12::ElementPrivate::lineNumber |
Line number in file where this element came from.
◆ name
std::string sdf::v12::ElementPrivate::name |
◆ originalVersion
std::string sdf::v12::ElementPrivate::originalVersion |
Spec version that this was originally parsed from.
◆ parent
◆ path
std::string sdf::v12::ElementPrivate::path |
Path to file where this element came from.
◆ referenceSDF
std::string sdf::v12::ElementPrivate::referenceSDF |
◆ required
std::string sdf::v12::ElementPrivate::required |
True if element is required.
◆ value
ParamPtr sdf::v12::ElementPrivate::value |
◆ xmlPath
std::string sdf::v12::ElementPrivate::xmlPath |
XML path of this element.
The documentation for this class was generated from the following file: