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

Diff for /pegasus/src/Pegasus/Common/Union.h between version 1.18 and 1.27

version 1.18, 2004/11/29 18:48:20 version 1.27, 2008/12/02 09:00:53
Line 1 
Line 1 
 //%2004////////////////////////////////////////////////////////////////////////  //%LICENSE////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development  // Licensed to The Open Group (TOG) under one or more contributor license
 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.  // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;  // this work for additional information regarding copyright ownership.
 // IBM Corp.; EMC Corporation, The Open Group.  // Each contributor licenses this file to you under the OpenPegasus Open
 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;  // Source License; you may not use this file except in compliance with the
 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.  // License.
 //  //
 // 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
 // of this software and associated documentation files (the "Software"), to  // copy of this software and associated documentation files (the "Software"),
 // deal in the Software without restriction, including without limitation the  // to deal in the Software without restriction, including without limitation
 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or  // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 // sell copies of the Software, and to permit persons to whom the Software is  // and/or sell copies of the Software, and to permit persons to whom the
 // furnished to do so, subject to the following conditions:  // Software is furnished to do so, subject to the following conditions:
 //  //
 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN  // The above copyright notice and this permission notice shall be included
 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED  // in all copies or substantial portions of the Software.
 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT  //
 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT  // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION  // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
   // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
   // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 // //
 //==============================================================================  //////////////////////////////////////////////////////////////////////////
 //  
 // Author: Mike Brasher (mbrasher@bmc.com)  
 //  
 // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)  
 //              Dave Sudlik, IBM (dsudlik@us.ibm.com)  
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 36 
Line 33 
 #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
  
   struct StringRep;
   
 /** 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 CIMType.h are represented by a Union. The     defined in CIMType.h are represented by a Union. The
Line 52 
Line 45 
 */ */
 union Union union Union
 { {
     Uint8 _booleanValue;      Boolean _booleanValue;
     Uint8 _uint8Value;     Uint8 _uint8Value;
     Sint8 _sint8Value;     Sint8 _sint8Value;
     Uint16 _uint16Value;     Uint16 _uint16Value;
Line 64 
Line 57 
     Real32 _real32Value;     Real32 _real32Value;
     Real64 _real64Value;     Real64 _real64Value;
     Uint16 _char16Value;     Uint16 _char16Value;
     String* _stringValue;      char _stringValue[sizeof(void*)];
     CIMDateTime* _dateTimeValue;      char _dateTimeValue[sizeof(void*)];
     CIMObjectPath* _referenceValue;      char _referenceValue[sizeof(void*)];
     CIMObject* _objectValue;      char _objectValue[sizeof(void*)];
       char _instanceValue[sizeof(void*)];
     Array<Boolean>* _booleanArray;  
     Array<Uint8>* _uint8Array;      char _booleanArray[sizeof(void*)];
     Array<Sint8>* _sint8Array;      char _uint8Array[sizeof(void*)];
     Array<Uint16>* _uint16Array;      char _sint8Array[sizeof(void*)];
     Array<Sint16>* _sint16Array;      char _uint16Array[sizeof(void*)];
     Array<Uint32>* _uint32Array;      char _sint16Array[sizeof(void*)];
     Array<Sint32>* _sint32Array;      char _uint32Array[sizeof(void*)];
     Array<Uint64>* _uint64Array;      char _sint32Array[sizeof(void*)];
     Array<Sint64>* _sint64Array;      char _uint64Array[sizeof(void*)];
     Array<Real32>* _real32Array;      char _sint64Array[sizeof(void*)];
     Array<Real64>* _real64Array;      char _real32Array[sizeof(void*)];
     Array<Char16>* _char16Array;      char _real64Array[sizeof(void*)];
     Array<String>* _stringArray;      char _char16Array[sizeof(void*)];
     Array<CIMDateTime>* _dateTimeArray;      char _stringArray[sizeof(void*)];
     Array<CIMObjectPath>* _referenceArray;      char _dateTimeArray[sizeof(void*)];
     Array<CIMObject>* _objectArray;      char _referenceArray[sizeof(void*)];
       char _objectArray[sizeof(void*)];
       char _instanceArray[sizeof(void*)];
       void* _voidPtr;
 }; };
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.18  
changed lines
  Added in v.1.27

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2