(file) Return to Union.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

  1 karl  1.22 //%2006////////////////////////////////////////////////////////////////////////
  2 mike  1.8  //
  3 karl  1.17 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4            // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5            // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6 karl  1.16 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.17 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8            // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9 karl  1.19 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.22 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 mike  1.8  //
 14            // Permission is hereby granted, free of charge, to any person obtaining a copy
 15 kumpf 1.14 // of this software and associated documentation files (the "Software"), to
 16            // deal in the Software without restriction, including without limitation the
 17            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18 mike  1.8  // sell copies of the Software, and to permit persons to whom the Software is
 19            // furnished to do so, subject to the following conditions:
 20            // 
 21 kumpf 1.14 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 mike  1.8  // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24 kumpf 1.14 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27 mike  1.8  // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29            //
 30            //==============================================================================
 31            //
 32            // Author: Mike Brasher (mbrasher@bmc.com)
 33            //
 34 kumpf 1.10 // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 35 dave.sudlik 1.18 //              Dave Sudlik, IBM (dsudlik@us.ibm.com)
 36 mike        1.21 //              Mike Brasher, Inova Europe (mike-brasher@austin.rr.com)
 37 mike        1.8  //
 38                  //%/////////////////////////////////////////////////////////////////////////////
 39                  
 40                  #ifndef Pegasus_Union_h
 41                  #define Pegasus_Union_h
 42                  
 43                  #include <Pegasus/Common/Config.h>
 44                  
 45                  PEGASUS_NAMESPACE_BEGIN
 46                  
 47 mike        1.20 struct StringRep;
 48                  
 49 mike        1.8  /** This union is used to represent the values of properties, qualifiers,
 50                      method return values, and method arguments. All of the types
 51                      defined in CIMType.h are represented by a Union. The 
 52                      Union is used as the the basis for the CIMValue implementation.
 53                  */
 54                  union Union
 55                  {
 56 mike        1.21     Boolean _booleanValue;
 57 mike        1.8      Uint8 _uint8Value;
 58                      Sint8 _sint8Value;
 59                      Uint16 _uint16Value;
 60                      Sint16 _sint16Value;
 61                      Uint32 _uint32Value;
 62                      Sint32 _sint32Value;
 63                      Uint64 _uint64Value;
 64                      Sint64 _sint64Value;
 65                      Real32 _real32Value;
 66                      Real64 _real64Value;
 67                      Uint16 _char16Value;
 68 mike        1.21     char _stringValue[sizeof(void*)];
 69                      char _dateTimeValue[sizeof(void*)];
 70                      char _referenceValue[sizeof(void*)];
 71                      char _objectValue[sizeof(void*)];
 72 a.dunfey    1.23 #ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT 
 73                      char _instanceValue[sizeof(void*)];
 74                  #endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT 
 75 mike        1.21 
 76                      char _booleanArray[sizeof(void*)];
 77                      char _uint8Array[sizeof(void*)];
 78                      char _sint8Array[sizeof(void*)];
 79                      char _uint16Array[sizeof(void*)];
 80                      char _sint16Array[sizeof(void*)];
 81                      char _uint32Array[sizeof(void*)];
 82                      char _sint32Array[sizeof(void*)];
 83                      char _uint64Array[sizeof(void*)];
 84                      char _sint64Array[sizeof(void*)];
 85                      char _real32Array[sizeof(void*)];
 86                      char _real64Array[sizeof(void*)];
 87                      char _char16Array[sizeof(void*)];
 88                      char _stringArray[sizeof(void*)];
 89                      char _dateTimeArray[sizeof(void*)];
 90                      char _referenceArray[sizeof(void*)];
 91                      char _objectArray[sizeof(void*)];
 92 a.dunfey    1.23 #ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT 
 93                      char _instanceArray[sizeof(void*)];
 94                  #endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT 
 95 mike        1.21     void* _voidPtr;
 96 mike        1.8  };
 97                  
 98                  PEGASUS_NAMESPACE_END
 99                  
100                  #endif /* Pegasus_Union_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2