#include <Param.hh>
|
typedef std::variant< bool, char, std::string, int, std::uint64_t, unsigned int, double, float, sdf::Time, ignition::math::Angle, ignition::math::Color, ignition::math::Vector2i, ignition::math::Vector2d, ignition::math::Vector3d, ignition::math::Quaterniond, ignition::math::Pose3d > | ParamVariant |
|
◆ ParamVariant
typedef std::variant<bool, char, std::string, int, std::uint64_t, unsigned int, double, float, sdf::Time, ignition::math::Angle, ignition::math::Color, ignition::math::Vector2i, ignition::math::Vector2d, ignition::math::Vector3d, ignition::math::Quaterniond, ignition::math::Pose3d> sdf::v12::ParamPrivate::ParamVariant |
◆ TypeToString()
template<typename T >
std::string sdf::v12::ParamPrivate::TypeToString |
Data type to string mapping.
- Returns
- The type as a string, empty string if unknown type
◆ ValueFromStringImpl()
bool sdf::v12::ParamPrivate::ValueFromStringImpl |
( |
const std::string & |
_typeName, |
|
|
const std::string & |
_valueStr, |
|
|
ParamVariant & |
_valueToSet |
|
) |
| const |
Method used to set the Param from a passed-in string.
- Parameters
-
[in] | _typeName | The data type of the value to set |
[in] | _valueStr | The value as a string |
[out] | _valueToSet | The value to set |
- Returns
- True if the value was successfully set, false otherwise
◆ defaultStrValue
std::string sdf::v12::ParamPrivate::defaultStrValue |
This parameter's default value that was provided as a string.
◆ defaultValue
This parameter's default value.
◆ description
std::string sdf::v12::ParamPrivate::description |
Description of the parameter.
◆ ignoreParentAttributes
bool sdf::v12::ParamPrivate::ignoreParentAttributes |
True if the value has been parsed while ignoring its parent element's attributes, and will continue to ignore them for subsequent reparses.
◆ key
std::string sdf::v12::ParamPrivate::key |
◆ maxValue
std::optional<ParamVariant> sdf::v12::ParamPrivate::maxValue |
This parameter's maximum allowed value.
◆ minValue
std::optional<ParamVariant> sdf::v12::ParamPrivate::minValue |
This parameter's minimum allowed value.
◆ parentElement
◆ required
bool sdf::v12::ParamPrivate::required |
True if the parameter is required.
◆ set
bool sdf::v12::ParamPrivate::set |
True if the parameter is set.
◆ strValue
std::string sdf::v12::ParamPrivate::strValue |
This parameter's value that was provided as a string.
◆ typeName
std::string sdf::v12::ParamPrivate::typeName |
◆ updateFunc
std::function<std::any ()> sdf::v12::ParamPrivate::updateFunc |
◆ value
The documentation for this class was generated from the following file: