PVData C++
8.0.2
|
Convenience functions for ScalarType. More...
Functions | |
epicsShareExtern bool | isInteger (ScalarType scalarType) |
epicsShareExtern bool | isUInteger (ScalarType scalarType) |
epicsShareExtern bool | isNumeric (ScalarType scalarType) |
epicsShareExtern bool | isPrimitive (ScalarType scalarType) |
epicsShareExtern ScalarType | getScalarType (std::string const &value) |
epicsShareExtern const char * | name (ScalarType scalarType) |
epicsShareExtern size_t | elementSize (ScalarType id) |
gives sizeof(T) where T depends on the scalar type id. | |
epicsShareFunc shared_vector< void > | allocArray (ScalarType id, size_t len) |
Allocate an untyped array based on ScalarType. | |
template<ScalarType ID> | |
shared_vector< typename ScalarTypeTraits< ID >::type > | allocArray (size_t len) |
Allocate an untyped array based on ScalarType. | |
Convenience functions for ScalarType.
epicsShareExtern ScalarType epics::pvData::ScalarTypeFunc::getScalarType | ( | std::string const & | value | ) |
Get the scalarType for value.
value | The name of the scalar type. |
epicsShareExtern bool epics::pvData::ScalarTypeFunc::isInteger | ( | ScalarType | scalarType | ) |
Is the type an integer, i.e. is it one of byte,...ulong
scalarType | The type. |
epicsShareExtern bool epics::pvData::ScalarTypeFunc::isNumeric | ( | ScalarType | scalarType | ) |
Is the type numeric, i.e. is it one of byte,...,double
scalarType | The type. |
epicsShareExtern bool epics::pvData::ScalarTypeFunc::isPrimitive | ( | ScalarType | scalarType | ) |
Is the type primitive, i.e. not string
scalarType | The type. |
epicsShareExtern bool epics::pvData::ScalarTypeFunc::isUInteger | ( | ScalarType | scalarType | ) |
Is the type an unsigned integer, i.e. is it one of ubyte,...ulong
scalarType | The type. |
epicsShareExtern const char* epics::pvData::ScalarTypeFunc::name | ( | ScalarType | scalarType | ) |
Get a name for the scalarType.
scalarType | The type. |