version 1.20, 2005/10/31 18:19:27
|
version 1.21, 2005/11/07 23:12:52
|
|
|
// | // |
// Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) | // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
// Dave Sudlik, IBM (dsudlik@us.ibm.com) | // Dave Sudlik, IBM (dsudlik@us.ibm.com) |
|
// Mike Brasher, Inova Europe (mike-brasher@austin.rr.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
#define Pegasus_Union_h | #define Pegasus_Union_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/CIMType.h> |
|
#include <Pegasus/Common/String.h> |
|
#include <Pegasus/Common/CIMDateTime.h> |
|
#include <Pegasus/Common/CIMObjectPath.h> |
|
#include <Pegasus/Common/CIMObject.h> |
|
#include <Pegasus/Common/Array.h> |
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
*/ | */ |
union Union | union Union |
{ | { |
Uint8 _booleanValue; |
Boolean _booleanValue; |
Uint8 _uint8Value; | Uint8 _uint8Value; |
Sint8 _sint8Value; | Sint8 _sint8Value; |
Uint16 _uint16Value; | Uint16 _uint16Value; |
|
|
Real32 _real32Value; | Real32 _real32Value; |
Real64 _real64Value; | Real64 _real64Value; |
Uint16 _char16Value; | Uint16 _char16Value; |
char _stringValue[sizeof(String)]; |
char _stringValue[sizeof(void*)]; |
CIMDateTime* _dateTimeValue; |
char _dateTimeValue[sizeof(void*)]; |
CIMObjectPath* _referenceValue; |
char _referenceValue[sizeof(void*)]; |
CIMObject* _objectValue; |
char _objectValue[sizeof(void*)]; |
|
|
Array<Boolean>* _booleanArray; |
char _booleanArray[sizeof(void*)]; |
Array<Uint8>* _uint8Array; |
char _uint8Array[sizeof(void*)]; |
Array<Sint8>* _sint8Array; |
char _sint8Array[sizeof(void*)]; |
Array<Uint16>* _uint16Array; |
char _uint16Array[sizeof(void*)]; |
Array<Sint16>* _sint16Array; |
char _sint16Array[sizeof(void*)]; |
Array<Uint32>* _uint32Array; |
char _uint32Array[sizeof(void*)]; |
Array<Sint32>* _sint32Array; |
char _sint32Array[sizeof(void*)]; |
Array<Uint64>* _uint64Array; |
char _uint64Array[sizeof(void*)]; |
Array<Sint64>* _sint64Array; |
char _sint64Array[sizeof(void*)]; |
Array<Real32>* _real32Array; |
char _real32Array[sizeof(void*)]; |
Array<Real64>* _real64Array; |
char _real64Array[sizeof(void*)]; |
Array<Char16>* _char16Array; |
char _char16Array[sizeof(void*)]; |
char _stringArray[sizeof(Array<String>)]; |
char _stringArray[sizeof(void*)]; |
Array<CIMDateTime>* _dateTimeArray; |
char _dateTimeArray[sizeof(void*)]; |
Array<CIMObjectPath>* _referenceArray; |
char _referenceArray[sizeof(void*)]; |
Array<CIMObject>* _objectArray; |
char _objectArray[sizeof(void*)]; |
|
void* _voidPtr; |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |