#include <Param.hh>
|
typedef std::variant< bool, char, std::string, int, std::uint64_t, unsigned int, double, float, sdf::Time, gz::math::Angle, gz::math::Color, gz::math::Vector2i, gz::math::Vector2d, gz::math::Vector3d, gz::math::Quaterniond, gz::math::Pose3d > | ParamVariant |
|
◆ ParamVariant
typedef std::variant<bool, char, std::string, int, std::uint64_t, unsigned int, double, float, sdf::Time, gz::math::Angle, gz::math::Color, gz::math::Vector2i, gz::math::Vector2d, gz::math::Vector3d, gz::math::Quaterniond, gz::math::Pose3d> sdf::v9::ParamPrivate::ParamVariant |
◆ TypeToString()
template<typename T >
std::string sdf::v9::ParamPrivate::TypeToString |
Data type to string mapping.
- Returns
- The type as a string, empty string if unknown type
◆ ValueFromStringImpl()
bool SDFORMAT_VISIBLE sdf::v9::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
◆ defaultValue
This parameter's default value.
◆ description
std::string sdf::v9::ParamPrivate::description |
Description of the parameter.
◆ key
std::string sdf::v9::ParamPrivate::key |
◆ required
bool sdf::v9::ParamPrivate::required |
True if the parameter is required.
◆ set
bool sdf::v9::ParamPrivate::set |
True if the parameter is set.
◆ typeName
std::string sdf::v9::ParamPrivate::typeName |
◆ updateFunc
std::function<std::any ()> sdf::v9::ParamPrivate::updateFunc |
◆ value
The documentation for this class was generated from the following file: