version 1.2, 2001/01/30 08:00:43
|
version 1.3, 2001/02/16 02:06:07
|
|
|
// Author: | // Author: |
// | // |
// $Log$ | // $Log$ |
|
// Revision 1.3 2001/02/16 02:06:07 mike |
|
// Renamed many classes and headers. |
|
// |
// Revision 1.2 2001/01/30 08:00:43 karl | // Revision 1.2 2001/01/30 08:00:43 karl |
// DOC++ Documentation update for header files | // DOC++ Documentation update for header files |
// | // |
|
|
// | // |
// This union is used to represent the values of properties, qualifiers, | // This union is used to represent the values of properties, qualifiers, |
// method return values, and method arguments. All of the types | // method return values, and method arguments. All of the types |
// defined in Type.h are represented by a Union. The |
// defined in CIMType.h are represented by a Union. The |
// Union is used as the the basis for the Value implementation. |
// Union is used as the the basis for the CIMValue implementation. |
// | // |
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// |
| |
|
|
#define Pegasus_Union_h | #define Pegasus_Union_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/Type.h> |
#include <Pegasus/Common/CIMType.h> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
#include <Pegasus/Common/DateTime.h> |
#include <Pegasus/Common/CIMDateTime.h> |
#include <Pegasus/Common/Reference.h> |
#include <Pegasus/Common/CIMReference.h> |
#include <Pegasus/Common/Array.h> | #include <Pegasus/Common/Array.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
/** union Union | /** union Union |
This union is used to represent the values of properties, qualifiers, | This union is used to represent the values of properties, qualifiers, |
method return values, and method arguments. All of the types | method return values, and method arguments. All of the types |
defined in Type.h are represented by a Union. The |
defined in CIMType.h are represented by a Union. The |
Union is used as the the basis for the Value implementation. |
Union is used as the the basis for the CIMValue implementation. |
*/ | */ |
union Union | union Union |
{ | { |
|
|
Real64 _real64Value; | Real64 _real64Value; |
Uint16 _char16Value; | Uint16 _char16Value; |
String* _stringValue; | String* _stringValue; |
DateTime* _dateTimeValue; |
CIMDateTime* _dateTimeValue; |
Reference* _referenceValue; |
CIMReference* _referenceValue; |
| |
ArrayRep<Boolean>* _booleanArray; | ArrayRep<Boolean>* _booleanArray; |
ArrayRep<Uint8>* _uint8Array; | ArrayRep<Uint8>* _uint8Array; |
|
|
ArrayRep<Real64>* _real64Array; | ArrayRep<Real64>* _real64Array; |
ArrayRep<Char16>* _char16Array; | ArrayRep<Char16>* _char16Array; |
ArrayRep<String>* _stringArray; | ArrayRep<String>* _stringArray; |
ArrayRep<DateTime>* _dateTimeArray; |
ArrayRep<CIMDateTime>* _dateTimeArray; |
| |
void* _voidPtr; | void* _voidPtr; |
}; | }; |