1 mike 1.9 //%/////////////////////////////////////////////////////////////////////////////
2 //
|
3 kumpf 1.20 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
4 // The Open Group, Tivoli Systems
|
5 mike 1.9 //
6 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
7 kumpf 1.20 // of this software and associated documentation files (the "Software"), to
8 // deal in the Software without restriction, including without limitation the
9 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
10 mike 1.9 // sell copies of the Software, and to permit persons to whom the Software is
11 // furnished to do so, subject to the following conditions:
12 //
|
13 kumpf 1.20 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
14 mike 1.9 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
15 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
16 kumpf 1.20 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
17 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
19 mike 1.9 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 //
22 //==============================================================================
23 //
24 // Author: Mike Brasher (mbrasher@bmc.com)
25 //
|
26 kumpf 1.15 // Modified By: Ramnath Ravindran (Ramnath.Ravindran@compaq.com)
27 // Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
|
28 kumpf 1.21 // Carol Ann Krug Graves, Hewlett-Packard Company
29 // (carolann_graves@hp.com)
|
30 mike 1.9 //
31 //%/////////////////////////////////////////////////////////////////////////////
32
33 #ifndef Pegasus_Type_h
34 #define Pegasus_Type_h
35
36 #include <Pegasus/Common/Config.h>
|
37 kumpf 1.23 #include <Pegasus/Common/Linkage.h>
|
38 mike 1.9
39 PEGASUS_NAMESPACE_BEGIN
40
41 /**
|
42 kumpf 1.21 The CIMType enumeration defines symbolic constants for the CIM data types.
|
43 mike 1.9
44 The table below shows each CIM type, its symbolic constant, and its
45 representation type.
46
47 <pre>
|
48 mike 1.10 CIM CIMType Constant C++ CIMType
|
49 mike 1.9 -------------------------------------------------------
|
50 kumpf 1.21 boolean CIMTYPE_BOOLEAN Boolean
51 uint8 CIMTYPE_UINT8 Uint8
52 sint8 CIMTYPE_SINT8 Sint8
53 uint16 CIMTYPE_UINT16 Uint16
54 sint16 CIMTYPE_SINT16 Sint16
55 uint32 CIMTYPE_UINT32 Uint32
56 sint32 CIMTYPE_SINT32 Sint32
57 uint64 CIMTYPE_UINT64 Sint64
58 sint64 CIMTYPE_SINT64 Sint64
59 real32 CIMTYPE_REAL32 Real32
60 real64 CIMTYPE_REAL64 Real64
61 char16 CIMTYPE_CHAR16 Char16
62 string CIMTYPE_STRING String
63 datetime CIMTYPE_DATETIME CIMDateTime
64 reference CIMTYPE_REFERENCE CIMObjectPath
|
65 mike 1.9 </pre>
66 */
|
67 kumpf 1.21
68 enum CIMType
|
69 mike 1.9 {
|
70 kumpf 1.21 CIMTYPE_BOOLEAN,
71 CIMTYPE_UINT8,
72 CIMTYPE_SINT8,
73 CIMTYPE_UINT16,
74 CIMTYPE_SINT16,
75 CIMTYPE_UINT32,
76 CIMTYPE_SINT32,
77 CIMTYPE_UINT64,
78 CIMTYPE_SINT64,
79 CIMTYPE_REAL32,
80 CIMTYPE_REAL64,
81 CIMTYPE_CHAR16,
82 CIMTYPE_STRING,
83 CIMTYPE_DATETIME,
84 CIMTYPE_REFERENCE
|
85 mike 1.9 };
86
|
87 kumpf 1.21 /**
88 Returns a string representation of the given type.
|
89 kumpf 1.17
|
90 kumpf 1.21 Note: the current implementation returns a string matching the first
91 column in the table above, but that is subject to change in later
92 revisions.
93 */
|
94 kumpf 1.22 PEGASUS_COMMON_LINKAGE const char * cimTypeToString (
|
95 kumpf 1.21 const CIMType type);
|
96 mike 1.9
97 PEGASUS_NAMESPACE_END
98
99 #endif /* Pegasus_Type_h */
|