RobWorkProject
24.12.4-
|
Represents type of a property. More...
#include <PropertyType.hpp>
Public Types | |
enum | Types { Unknown = -1 , PropertyMap = 0 , PropertyMapPtr , PropertyValueBasePtrList , String , Float , Double , Int , Bool , Vector3D , Vector2D , Q , Transform3D , Rotation3D , RPY , EAA , Quaternion , Rotation2D , VelocityScrew6D , QPath , QPathPtr , Transform3DPath , Transform3DPathPtr , StringList , IntList , DoubleList , User = 1024 } |
Predefined types. More... | |
Public Member Functions | |
PropertyType () | |
PropertyType (int id) | |
Construct PropertyType with the specified type. More... | |
int | getId () const |
Returns id of the type. More... | |
Static Public Member Functions | |
static int | getNewID () |
Constructs a new ID for a property type. The ID will be unique. More... | |
static PropertyType | getType (const rw::core::PropertyMap &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::core::Ptr< rw::core::PropertyMap > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const std::vector< rw::core::Ptr< rw::core::PropertyValueBase >> &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const std::string &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (float value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (double value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (int value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (bool value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::math::Vector3D< double > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::math::Vector2D< double > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::math::Q &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::math::Transform3D< double > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::math::Rotation3D< double > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::math::RPY< double > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::math::EAA< double > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::math::Quaternion< double > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::math::Rotation2D< double > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::math::VelocityScrew6D< double > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::trajectory::Path< rw::math::Q > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::core::Ptr< rw::trajectory::Path< rw::math::Q >> &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::trajectory::Path< rw::math::Transform3D< double >> &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const rw::core::Ptr< rw::trajectory::Path< rw::math::Transform3D< double >>> &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const std::vector< std::string > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const std::vector< int > &value) |
Get the type of a value resolved at compile time. More... | |
static PropertyType | getType (const std::vector< double > &value) |
Get the type of a value resolved at compile time. More... | |
template<class T > | |
static PropertyType | getType (const T &value) |
Get the type of a generic value T resolved at compile time. More... | |
Represents type of a property.
PropertyType has a number of predefined property types. Besides it generates unique id's for new user defined types
enum Types |
Predefined types.
Enumerator | |
---|---|
Unknown | Unknown type. |
PropertyMap | |
PropertyMapPtr | |
PropertyValueBasePtrList | std::vector<rw::core::PropertyValueBase::Ptr> |
String | std::string |
Float | float |
Double | double |
Int | int |
Bool | bool |
Vector3D | |
Vector2D | |
Q | |
Transform3D | |
Rotation3D | |
RPY | |
EAA | |
Quaternion | |
Rotation2D | |
VelocityScrew6D | |
QPath | |
QPathPtr | |
Transform3DPath | |
Transform3DPathPtr | |
StringList | std::vector<std::string> |
IntList | std::vector<int> |
DoubleList | std::vector<double> |
User | First user defined type. Returned by first call to PropertyType::getNewID() |
|
inline |
brief Constructs PropertyType with type UNKNOWN
|
inline |
Construct PropertyType with the specified type.
id | [in] either one of the predefined types or a user defined type, generated by getNewID(). |
|
inline |
Returns id of the type.
|
static |
Constructs a new ID for a property type. The ID will be unique.
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a generic value T resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |
|
inlinestatic |
Get the type of a value resolved at compile time.
value | [in] the value to deduct type for. |