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

 1 karl  1.3 //%2005////////////////////////////////////////////////////////////////////////
 2 schuur 1.1 //
 3 karl   1.2 // 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 schuur 1.1 // IBM Corp.; EMC Corporation, The Open Group.
 7 karl   1.2 // 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.3 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
11 schuur 1.1 //
12            // Permission is hereby granted, free of charge, to any person obtaining a copy
13            // of this software and associated documentation files (the "Software"), to
14            // deal in the Software without restriction, including without limitation the
15            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16            // sell copies of the Software, and to permit persons to whom the Software is
17            // furnished to do so, subject to the following conditions:
18            // 
19            // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
20            // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
22            // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25            // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27            //
28            //==============================================================================
29            //
30            // Author: Mike Brasher (mbrasher@bmc.com)
31            //
32 schuur 1.1 // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
33            //              Karl Schopmeyer, (k.schopmeyer@opengroup.org)
34            //              Carol Ann Krug Graves, Hewlett-Packard Company
35            //                (carolann_graves@hp.com)
36            //              Amit K Arora, IBM (amita@in.ibm.com)
37            //              Adriann Schuur (schuur@de.ibm.com) PEP 164
38            //
39            //%/////////////////////////////////////////////////////////////////////////////
40            
41            #ifndef Pegasus_ValueRep_h
42            #define Pegasus_ValueRep_h
43            
44            #include "Union.h"
45            
46            PEGASUS_NAMESPACE_BEGIN
47            
48            class CIMValueRep
49            {
50            public:
51                CIMValueRep()
52                {
53 schuur 1.1         reset();
54                }
55            
56                ~CIMValueRep()
57                {
58                }
59            
60                void reset()
61                {
62                    _type = CIMTYPE_BOOLEAN;
63                    _isArray = false;
64                    _isNull = true;
65 dave.sudlik 1.4         memset( &_u, 0, sizeof( Union ) );
66 schuur      1.1     }
67                 
68                     CIMType _type;
69                     Boolean _isArray;
70                     Boolean _isNull;
71                     Union _u;
72                 };
73                 
74                 
75                 PEGASUS_NAMESPACE_END
76                 
77                 #endif /* Pegasus_ValueRep_h */
78                 

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2