1 martin 1.26 //%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.27 //
|
3 martin 1.26 // Licensed to The Open Group (TOG) under one or more contributor license
4 // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 // this work for additional information regarding copyright ownership.
6 // Each contributor licenses this file to you under the OpenPegasus Open
7 // Source License; you may not use this file except in compliance with the
8 // License.
|
9 martin 1.27 //
|
10 martin 1.26 // Permission is hereby granted, free of charge, to any person obtaining a
11 // copy of this software and associated documentation files (the "Software"),
12 // to deal in the Software without restriction, including without limitation
13 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 // and/or sell copies of the Software, and to permit persons to whom the
15 // Software is furnished to do so, subject to the following conditions:
|
16 martin 1.27 //
|
17 martin 1.26 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
|
19 martin 1.27 //
|
20 martin 1.26 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.27 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.26 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.27 //
|
28 martin 1.26 //////////////////////////////////////////////////////////////////////////
|
29 mike 1.8 //
30 //%/////////////////////////////////////////////////////////////////////////////
31
32 #ifndef Pegasus_Union_h
33 #define Pegasus_Union_h
34
35 #include <Pegasus/Common/Config.h>
36
37 PEGASUS_NAMESPACE_BEGIN
38
|
39 mike 1.20 struct StringRep;
40
|
41 mike 1.8 /** This union is used to represent the values of properties, qualifiers,
42 method return values, and method arguments. All of the types
|
43 kumpf 1.24 defined in CIMType.h are represented by a Union. The
|
44 mike 1.8 Union is used as the the basis for the CIMValue implementation.
45 */
46 union Union
47 {
|
48 mike 1.21 Boolean _booleanValue;
|
49 mike 1.8 Uint8 _uint8Value;
50 Sint8 _sint8Value;
51 Uint16 _uint16Value;
52 Sint16 _sint16Value;
53 Uint32 _uint32Value;
54 Sint32 _sint32Value;
55 Uint64 _uint64Value;
56 Sint64 _sint64Value;
57 Real32 _real32Value;
58 Real64 _real64Value;
59 Uint16 _char16Value;
|
60 mike 1.21 char _stringValue[sizeof(void*)];
61 char _dateTimeValue[sizeof(void*)];
62 char _referenceValue[sizeof(void*)];
63 char _objectValue[sizeof(void*)];
|
64 a.dunfey 1.23 char _instanceValue[sizeof(void*)];
|
65 mike 1.21
66 char _booleanArray[sizeof(void*)];
67 char _uint8Array[sizeof(void*)];
68 char _sint8Array[sizeof(void*)];
69 char _uint16Array[sizeof(void*)];
70 char _sint16Array[sizeof(void*)];
71 char _uint32Array[sizeof(void*)];
72 char _sint32Array[sizeof(void*)];
73 char _uint64Array[sizeof(void*)];
74 char _sint64Array[sizeof(void*)];
75 char _real32Array[sizeof(void*)];
76 char _real64Array[sizeof(void*)];
77 char _char16Array[sizeof(void*)];
78 char _stringArray[sizeof(void*)];
79 char _dateTimeArray[sizeof(void*)];
80 char _referenceArray[sizeof(void*)];
81 char _objectArray[sizeof(void*)];
|
82 a.dunfey 1.23 char _instanceArray[sizeof(void*)];
|
83 mike 1.21 void* _voidPtr;
|
84 mike 1.8 };
85
86 PEGASUS_NAMESPACE_END
87
88 #endif /* Pegasus_Union_h */
|