version 1.19.10.1, 2005/10/02 03:28:36
|
version 1.24, 2006/11/10 18:14:58
|
|
|
//%2005//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; | // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// EMC Corporation; VERITAS Software Corporation; The Open Group. | // EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) |
|
// |
|
// Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
|
// Dave Sudlik, IBM (dsudlik@us.ibm.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_Union_h | #ifndef Pegasus_Union_h |
#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*)]; |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
Array<Boolean>* _booleanArray; |
char _instanceValue[sizeof(void*)]; |
Array<Uint8>* _uint8Array; |
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
Array<Sint8>* _sint8Array; |
|
Array<Uint16>* _uint16Array; |
char _booleanArray[sizeof(void*)]; |
Array<Sint16>* _sint16Array; |
char _uint8Array[sizeof(void*)]; |
Array<Uint32>* _uint32Array; |
char _sint8Array[sizeof(void*)]; |
Array<Sint32>* _sint32Array; |
char _uint16Array[sizeof(void*)]; |
Array<Uint64>* _uint64Array; |
char _sint16Array[sizeof(void*)]; |
Array<Sint64>* _sint64Array; |
char _uint32Array[sizeof(void*)]; |
Array<Real32>* _real32Array; |
char _sint32Array[sizeof(void*)]; |
Array<Real64>* _real64Array; |
char _uint64Array[sizeof(void*)]; |
Array<Char16>* _char16Array; |
char _sint64Array[sizeof(void*)]; |
Array<String>* _stringArray; |
char _real32Array[sizeof(void*)]; |
Array<CIMDateTime>* _dateTimeArray; |
char _real64Array[sizeof(void*)]; |
Array<CIMObjectPath>* _referenceArray; |
char _char16Array[sizeof(void*)]; |
Array<CIMObject>* _objectArray; |
char _stringArray[sizeof(void*)]; |
|
char _dateTimeArray[sizeof(void*)]; |
|
char _referenceArray[sizeof(void*)]; |
|
char _objectArray[sizeof(void*)]; |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
char _instanceArray[sizeof(void*)]; |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
void* _voidPtr; |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |