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

Helper macros for message translation. More...

Macros

#define CMFmtSint(v)   CMPI_sint32,((long int)v)
 Message insert pair for a signed integer value up to 32-bit.
 
#define CMFmtUint(v)   CMPI_uint32,((unsigned long int)v)
 Message insert pair for an unsigned integer value up to 32-bit.
 
#define CMFmtSint64(v)   CMPI_sint64,((long long int)v)
 Message insert pair for a signed integer value up to 64-bit.
 
#define CMFmtUint64(v)   CMPI_uint64,((unsigned long long int)v)
 Message insert pair for an unsigned integer value up to 64-bit.
 
#define CMFmtReal(v)   CMPI_real64,((double)v)
 Message insert pair for a CIM real64 value.
 
#define CMFmtBoolean(v)   CMPI_boolean,((int)v)
 Message insert pair for a boolean value.
 
#define CMFmtChars(v)   CMPI_chars,((char*)v)
 Message insert pair for a C string value.
 
#define CMFmtString(v)   CMPI_string,((CMPIString*)v)
 Message insert pair for a CMPIString value.
 

Detailed Description

Helper macros for message translation.

These macros are used in context of CMGetMessage() and CMGetMessage2(), as a comma-separated list of arguments to CMFmtArgs<N>().

Each of these macros represents a message insert pair consisting of type and value.

The argument of each of these macros is a value that is used to expand a message trigger ("$0", etc.) in the message.

See Also
CMGetMessage(), CMGetMessage2() for example code