1 mike 1.4 //%/////////////////////////////////////////////////////////////////////////////
|
2 mike 1.1 //
3 // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM
4 //
5 // Permission is hereby granted, free of charge, to any person obtaining a
6 // copy of this software and associated documentation files (the "Software"),
7 // to deal in the Software without restriction, including without limitation
8 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 // and/or sell copies of the Software, and to permit persons to whom the
10 // Software is furnished to do so, subject to the following conditions:
11 //
12 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
15 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
18 // DEALINGS IN THE SOFTWARE.
19 //
|
20 mike 1.4 //==============================================================================
|
21 mike 1.1 //
|
22 mike 1.4 // Author: Mike Brasher (mbrasher@bmc.com)
|
23 mike 1.1 //
|
24 mike 1.4 // Modified By:
|
25 mike 1.3 //
|
26 mike 1.4 //%/////////////////////////////////////////////////////////////////////////////
|
27 mike 1.1
28 ////////////////////////////////////////////////////////////////////////////////
29 //
30 // Union
31 //
32 // This union is used to represent the values of properties, qualifiers,
33 // method return values, and method arguments. All of the types
|
34 mike 1.3 // defined in CIMType.h are represented by a Union. The
35 // Union is used as the the basis for the CIMValue implementation.
|
36 mike 1.1 //
37 ////////////////////////////////////////////////////////////////////////////////
38
39 #ifndef Pegasus_Union_h
40 #define Pegasus_Union_h
41
42 #include <Pegasus/Common/Config.h>
|
43 mike 1.3 #include <Pegasus/Common/CIMType.h>
|
44 mike 1.1 #include <Pegasus/Common/String.h>
|
45 mike 1.3 #include <Pegasus/Common/CIMDateTime.h>
46 #include <Pegasus/Common/CIMReference.h>
|
47 mike 1.1 #include <Pegasus/Common/Array.h>
48
49 PEGASUS_NAMESPACE_BEGIN
|
50 karl 1.2 /** union Union
51 This union is used to represent the values of properties, qualifiers,
52 method return values, and method arguments. All of the types
|
53 mike 1.3 defined in CIMType.h are represented by a Union. The
54 Union is used as the the basis for the CIMValue implementation.
|
55 karl 1.2 */
|
56 mike 1.1 union Union
57 {
58 Uint8 _booleanValue;
59 Uint8 _uint8Value;
60 Sint8 _sint8Value;
61 Uint16 _uint16Value;
62 Sint16 _sint16Value;
63 Uint32 _uint32Value;
64 Sint32 _sint32Value;
65 Uint64 _uint64Value;
66 Sint64 _sint64Value;
67 Real32 _real32Value;
68 Real64 _real64Value;
69 Uint16 _char16Value;
70 String* _stringValue;
|
71 mike 1.3 CIMDateTime* _dateTimeValue;
72 CIMReference* _referenceValue;
|
73 mike 1.1
74 ArrayRep<Boolean>* _booleanArray;
75 ArrayRep<Uint8>* _uint8Array;
76 ArrayRep<Sint8>* _sint8Array;
77 ArrayRep<Uint16>* _uint16Array;
78 ArrayRep<Sint16>* _sint16Array;
79 ArrayRep<Uint32>* _uint32Array;
80 ArrayRep<Sint32>* _sint32Array;
81 ArrayRep<Uint64>* _uint64Array;
82 ArrayRep<Sint64>* _sint64Array;
83 ArrayRep<Real32>* _real32Array;
84 ArrayRep<Real64>* _real64Array;
85 ArrayRep<Char16>* _char16Array;
86 ArrayRep<String>* _stringArray;
|
87 mike 1.3 ArrayRep<CIMDateTime>* _dateTimeArray;
|
88 mike 1.1
89 void* _voidPtr;
90 };
91
92 PEGASUS_NAMESPACE_END
93
94 #endif /* Pegasus_Union_h */
|