CMPI 2.1.0 API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Typedefs

Typedefs

typedef unsigned short CMPIType
 A bitmask type representing a CMPI type. More...
 

Test masks and values for CMPIType

These test masks and values are used on CMPIType.

#define CMPI_null   0
 No type.
 
#define CMPI_SIMPLE   (2)
 Test mask for CIM simple types.
 
#define CMPI_boolean   (2+0)
 Indicates a CMPIValue.boolean value.
 
#define CMPI_char16   (2+1)
 Indicates a CMPIValue.char16 value.
 
#define CMPI_REAL   ((2)<<2)
 Test mask for CIM real number types.
 
#define CMPI_real32   ((2+0)<<2)
 Indicates a CMPIValue.real32 value.
 
#define CMPI_real64   ((2+1)<<2)
 Indicates a CMPIValue.real64 value.
 
#define CMPI_UINT   ((8)<<4)
 
#define CMPI_uint8   ((8+0)<<4)
 Indicates a CMPIValue.uint8 value.
 
#define CMPI_uint16   ((8+1)<<4)
 Indicates a CMPIValue.uint16 value.
 
#define CMPI_uint32   ((8+2)<<4)
 Indicates a CMPIValue.uint32 value.
 
#define CMPI_uint64   ((8+3)<<4)
 
#define CMPI_SINT   ((8+4)<<4)
 
#define CMPI_sint8   ((8+4)<<4)
 Indicates a CMPIValue.sint8 value.
 
#define CMPI_sint16   ((8+5)<<4)
 Indicates a CMPIValue.sint16 value.
 
#define CMPI_sint32   ((8+6)<<4)
 Indicates a CMPIValue.sint32 value.
 
#define CMPI_sint64   ((8+7)<<4)
 
#define CMPI_INTEGER   ((CMPI_UINT|CMPI_SINT))
 Test mask for CIM integer types.
 
#define CMPI_ENC   ((16)<<8)
 Test mask for CMPI encapsulated data types.
 
#define CMPI_instance   ((16+0)<<8)
 Indicates a CMPIValue.inst value.
 
#define CMPI_ref   ((16+1)<<8)
 Indicates a CMPIValue.ref value.
 
#define CMPI_args   ((16+2)<<8)
 Indicates a CMPIValue.args value.
 
#define CMPI_class   ((16+3)<<8)
 Not used.
 
#define CMPI_filter   ((16+4)<<8)
 Indicates a CMPIValue.filter value.
 
#define CMPI_enumeration   ((16+5)<<8)
 Indicates a CMPIValue.Enum value.
 
#define CMPI_string   ((16+6)<<8)
 Indicates a CMPIValue.string value.
 
#define CMPI_chars   ((16+7)<<8)
 Indicates a CMPIValue.chars value.
 
#define CMPI_dateTime   ((16+8)<<8)
 Indicates a CMPIValue.dateTime value.
 
#define CMPI_ptr   ((16+9)<<8)
 Indicates a CMPIValue.dataPtr value.
 
#define CMPI_charsptr   ((16+10)<<8)
 Not used.
 
#define CMPI_ARRAY   ((1)<<13)
 Test mask for arrays.
 
#define CMPI_SIMPLEA   (CMPI_ARRAY|CMPI_SIMPLE)
 Test mask for array of CIM simple types.
 
#define CMPI_booleanA   (CMPI_ARRAY|CMPI_boolean)
 Indicates a CMPIValue.array value with CMPIBoolean entries.
 
#define CMPI_char16A   (CMPI_ARRAY|CMPI_char16)
 Indicates a CMPIValue.array value with CMPIChar16 entries.
 
#define CMPI_REALA   (CMPI_ARRAY|CMPI_REAL)
 Test mask for array of CIM real numbers.
 
#define CMPI_real32A   (CMPI_ARRAY|CMPI_real32)
 Indicates a CMPIValue.array value with CMPIReal32 entries.
 
#define CMPI_real64A   (CMPI_ARRAY|CMPI_real64)
 Indicates a CMPIValue.array value with CMPIReal64 entries.
 
#define CMPI_UINTA   (CMPI_ARRAY|CMPI_UINT)
 Test mask for array of CIM unsigned integers.
 
#define CMPI_uint8A   (CMPI_ARRAY|CMPI_uint8)
 Indicates a CMPIValue.array value with CMPIUint8 entries.
 
#define CMPI_uint16A   (CMPI_ARRAY|CMPI_uint16)
 Indicates a CMPIValue.array value with CMPIUint16 entries.
 
#define CMPI_uint32A   (CMPI_ARRAY|CMPI_uint32)
 Indicates a CMPIValue.array value with CMPIUint32 entries.
 
#define CMPI_uint64A   (CMPI_ARRAY|CMPI_uint64)
 Indicates a CMPIValue.array value with CMPIUint64 entries.
 
#define CMPI_SINTA   (CMPI_ARRAY|CMPI_SINT)
 Test mask for array of CIM signed integers.
 
#define CMPI_sint8A   (CMPI_ARRAY|CMPI_sint8)
 Indicates a CMPIValue.array value with CMPISint8 entries.
 
#define CMPI_sint16A   (CMPI_ARRAY|CMPI_sint16)
 Indicates a CMPIValue.array value with CMPISint16 entries.
 
#define CMPI_sint32A   (CMPI_ARRAY|CMPI_sint32)
 Indicates a CMPIValue.array value with CMPISint32 entries.
 
#define CMPI_sint64A   (CMPI_ARRAY|CMPI_sint64)
 Indicates a CMPIValue.array value with CMPISint64 entries.
 
#define CMPI_INTEGERA   (CMPI_ARRAY|CMPI_INTEGER)
 Test mask for array of CIM integers.
 
#define CMPI_ENCA   (CMPI_ARRAY|CMPI_ENC)
 Test mask for array of CMPI encapsulated data types.
 
#define CMPI_instanceA   (CMPI_ARRAY|CMPI_instance)
 Indicates a CMPIValue.array value with CMPIInstance entries.
 
#define CMPI_refA   (CMPI_ARRAY|CMPI_ref)
 Indicates a CMPIValue.array value with CMPIObjectPath entries.
 
#define CMPI_stringA   (CMPI_ARRAY|CMPI_string)
 Indicates a CMPIValue.array value with CMPIString entries.
 
#define CMPI_charsA   (CMPI_ARRAY|CMPI_chars)
 Indicates a CMPIValue.array value with C string entries.
 
#define CMPI_dateTimeA   (CMPI_ARRAY|CMPI_dateTime)
 Indicates a CMPIValue.array value with CMPIDateTime entries.
 
#define CMPI_charsptrA   (CMPI_ARRAY|CMPI_charsptr)
 Not used.
 
#define CMPI_keyInteger   (CMPI_sint64)
 Generic integer type in CMPIObjectPath.
 
#define CMPI_keyString   (CMPI_string)
 Generic string type in CMPIObjectPath.
 
#define CMPI_keyBoolean   (CMPI_boolean)
 Generic boolean type in CMPIObjectPath.
 
#define CMPI_keyRef   (CMPI_ref)
 Generic reference type in CMPIObjectPath.
 
#define CMPI_charString   (CMPI_string)
 Predicate type for strings.
 
#define CMPI_integerString   (CMPI_string | CMPI_sint64)
 Predicate type for integers.
 
#define CMPI_realString   (CMPI_string | CMPI_real64)
 Predicate type for real numbers.
 
#define CMPI_numericString   (CMPI_string | CMPI_sint64 | CMPI_real64)
 Predicate type for numbers.
 
#define CMPI_booleanString   (CMPI_string | CMPI_boolean)
 Predicate type for booleans.
 
#define CMPI_dateTimeString   (CMPI_string | CMPI_dateTime)
 Predicate type for datetime.
 
#define CMPI_classNameString   (CMPI_string | CMPI_class)
 Predicate type for class names.
 
#define CMPI_nameString   (CMPI_string | ((16+10)<<8))
 Predicate type for names.
 

Detailed Description

Macro Definition Documentation

#define CMPI_UINT   ((8)<<4)

Test mask for CIM unsigned integer types

Bug:
The CMPI_UINT test mask matches not only for unsigned integer types, but in addition for signed integers. For compatibility reasons, this cannot be fixed in CMPI 2.x.
#define CMPI_uint64   ((8+3)<<4)

Indicates a CMPIValue.uint64 value

#define CMPI_SINT   ((8+4)<<4)

Test mask for CIM signed integer types

Bug:
The CMPI_SINT test mask matches not only for signed integer types, but in addition for unsigned integers. For compatibility reasons, this cannot be fixed in CMPI 2.x.
#define CMPI_sint64   ((8+7)<<4)

Indicates a CMPIValue.sint64 value

Typedef Documentation

typedef unsigned short CMPIType

A bitmask type representing a CMPI type.

CMPIType is used mainly in CMPI data items (see CMPIData) and is also used standalone in some cases.

See Test masks and values for CMPIType for a definition of test masks and values for CMPIType.