TITLE: CMPIUint32 and CMPISint32 datatypes defined as a 64-bit value on some 64-bit systems
DESCRIPTION: Use ints instead of longs for 32-bit integers to be consistent with the Pegasus definitions.
/** Extracting signed 32 bit.
*/
operator CMPISint32() const;
- /** Extracting signed 32 bit.
- */
- operator int() const;
/** Extracting signed 64 bit.
*/
operator CMPISint64() const;
/** Extracting unsigned 32 bit.
*/
operator CMPIUint32() const;
- /** Extracting unsigned 32 bit.
- */
- operator unsigned int() const;
/** Extracting unsigned 64 bit.
*/
operator CMPIUint64() const;
*/
CmpiData();
- /** Constructor - singed 8 bit as input.
+ /** Constructor - signed 8 bit as input.
*/
CmpiData(CMPISint8 d);
- /** Constructor - singed 16 bit as input.
+ /** Constructor - signed 16 bit as input.
*/
CmpiData(CMPISint16 d);
- /** Constructor - singed 32 bit as input.
+ /** Constructor - signed 32 bit as input.
*/
CmpiData(CMPISint32 d);
- /** Constructor - singed 32 bit as input.
- */
- CmpiData(int d);
-
- /** Constructor - singed 64 bit as input.
+ /** Constructor - signed 64 bit as input.
*/
CmpiData(CMPISint64 d);
- /** Constructor - unsinged 8 bit as input.
+ /** Constructor - unsigned 8 bit as input.
*/
CmpiData(CMPIUint8 d);
- /** Constructor - unsinged 16 bit as input.
+ /** Constructor - unsigned 16 bit as input.
*/
CmpiData(CMPIUint16 d);
- /** Constructor - unsinged 32 bit as input.
+ /** Constructor - unsigned 32 bit as input.
*/
CmpiData(CMPIUint32 d);
- /** Constructor - unsinged 32 bit as input.
- */
- CmpiData(unsigned int d);
-
- /** Constructor - unsinged 64 bit as input.
+ /** Constructor - unsigned 64 bit as input.
*/
CmpiData(CMPIUint64 d);
*/
operator CMPISint32() const;
- /** Extracting signed 32 bit.
- */
- operator int() const;
-
/** Extracting signed 64 bit.
*/
operator CMPISint64() const;
*/
operator CMPIUint32() const;
- /** Extracting unsigned 32 bit.
- */
- operator unsigned int() const;
-
/** Extracting unsigned 64 bit.
*/
operator CMPIUint64() const;
_data.type=CMPI_sint32;
}
-CmpiData::CmpiData(int d) {
- _data.state=CMPI_goodValue;
- _data.value.sint32=d;
- _data.type=CMPI_sint32;
-}
-
CmpiData::CmpiData(CMPISint64 d) {
_data.state=CMPI_goodValue;
_data.value.sint64=d;
_data.type=CMPI_uint32;
}
-CmpiData::CmpiData(unsigned int d) {
- _data.state=CMPI_goodValue;
- _data.value.sint32=d;
- _data.type=CMPI_uint32;
-}
-
CmpiData::CmpiData(CMPIUint64 d) {
_data.state=CMPI_goodValue;
_data.value.sint64=d;
else
return _data.value.sint32;
}
-CmpiData::operator int() const {
- if (_data.type!=CMPI_sint32)
- throw CmpiStatus(CMPI_RC_ERR_TYPE_MISMATCH);
- else
- return _data.value.sint32;
-}
CmpiData::operator CMPISint64() const {
if (_data.type!=CMPI_sint64)
return _data.value.uint32;
}
-CmpiData::operator unsigned int() const {
- if (_data.type!=CMPI_uint32)
- throw CmpiStatus(CMPI_RC_ERR_TYPE_MISMATCH);
- else
- return _data.value.uint32;
-}
-
CmpiData::operator CMPIUint64() const {
if (_data.type!=CMPI_uint64)
throw CmpiStatus(CMPI_RC_ERR_TYPE_MISMATCH);
typedef unsigned short CMPIChar16;
typedef unsigned char CMPIUint8;
typedef unsigned short CMPIUint16;
- typedef unsigned long CMPIUint32;
+ typedef unsigned int CMPIUint32;
#ifndef CMPI_PLATFORM_WIN32_IX86_MSVC
typedef unsigned long long CMPIUint64;
#else
#endif
typedef signed char CMPISint8;
typedef short CMPISint16;
- typedef long CMPISint32;
+ typedef signed int CMPISint32;
#ifndef CMPI_PLATFORM_WIN32_IX86_MSVC
typedef long long CMPISint64;
#else