1 mike 1.1.2.1 //%2006////////////////////////////////////////////////////////////////////////
2 //
3 // 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 // IBM Corp.; EMC Corporation, The Open Group.
7 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
9 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
11 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
13 //
14 // Permission is hereby granted, free of charge, to any person obtaining a copy
15 // 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 // 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 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 mike 1.1.2.1 // 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 // 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 // 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 //%/////////////////////////////////////////////////////////////////////////////
33
34 #ifndef Pegasus_MetaTypes_h
35 #define Pegasus_MetaTypes_h
36
37 #include <Pegasus/Common/Config.h>
38 #include <Pegasus/Common/CIMType.h>
39 #include "Linkage.h"
40
41 #define META_FLAG_PROPERTY (1 << 0)
42 #define META_FLAG_REFERENCE (1 << 1)
43 mike 1.1.2.1 #define META_FLAG_METHOD (1 << 2)
44 #define META_FLAG_CLASS (1 << 3)
45 #define META_FLAG_ABSTRACT (1 << 4)
46 #define META_FLAG_AGGREGATE (1 << 5)
47 #define META_FLAG_AGGREGATION (1 << 6)
48 #define META_FLAG_ASSOCIATION (1 << 7)
49 #define META_FLAG_COMPOSITION (1 << 8)
50 #define META_FLAG_COUNTER (1 << 9)
51 #define META_FLAG_DELETE (1 << 10)
52 #define META_FLAG_DN (1 << 11)
53 #define META_FLAG_EMBEDDEDOBJECT (1 << 12)
54 #define META_FLAG_EXCEPTION (1 << 13)
55 #define META_FLAG_EXPENSIVE (1 << 14)
56 #define META_FLAG_EXPERIMENTAL (1 << 15)
57 #define META_FLAG_GAUGE (1 << 16)
58 #define META_FLAG_IFDELETED (1 << 17)
59 #define META_FLAG_IN (1 << 18)
60 #define META_FLAG_INDICATION (1 << 19)
61 #define META_FLAG_INVISIBLE (1 << 20)
62 #define META_FLAG_KEY (1 << 21)
63 #define META_FLAG_LARGE (1 << 22)
64 mike 1.1.2.1 #define META_FLAG_OCTETSTRING (1 << 23)
65 #define META_FLAG_OUT (1 << 24)
66 #define META_FLAG_READ (1 << 25)
67 #define META_FLAG_REQUIRED (1 << 26)
68 #define META_FLAG_STATIC (1 << 27)
69 #define META_FLAG_TERMINAL (1 << 28)
70 #define META_FLAG_WEAK (1 << 29)
71 #define META_FLAG_WRITE (1 << 30)
72 #define META_FLAG_EMBEDDEDINSTANCE (1 << 31)
73
74 #define META_SCOPE_SCHEMA (1 << 0)
75 #define META_SCOPE_CLASS (1 << 1)
76 #define META_SCOPE_ASSOCIATION (1 << 2)
77 #define META_SCOPE_INDICATION (1 << 3)
78 #define META_SCOPE_PROPERTY (1 << 4)
79 #define META_SCOPE_REFERENCE (1 << 5)
80 #define META_SCOPE_METHOD (1 << 6)
81 #define META_SCOPE_PARAMETER (1 << 7)
82 #define META_SCOPE_ANY (1|2|4|8|16|32|64|128)
83
84 #define META_FLAVOR_OVERRIDABLE (1 << 0)
85 mike 1.1.2.1 #define META_FLAVOR_TOSUBCLASS (1 << 1)
86 #define META_FLAVOR_TOINSTANCE (1 << 2)
87 #define META_FLAVOR_TRANSLATABLE (1 << 3)
88 #define META_FLAVOR_DISABLEOVERRIDE (1 << 4)
89 #define META_FLAVOR_RESTRICTED (1 << 5)
90
|
165 mike 1.1.2.3 const MetaQualifierDecl* FindQualifierDecl(
166 const MetaNameSpace* ns,
167 const char* name);
168
169 const MetaClass* FindClass(const MetaNameSpace* ns, const char* name);
170
171 bool IsSubClass(const MetaClass* super, const MetaClass* sub);
172
173 inline bool IsA(const MetaClass* super, const MetaClass* sub)
174 {
175 return sub == super || IsSubClass(super, sub);
176 }
177
178 struct MetaFeatureInfo
179 {
180 const MetaFeature* mf;
181 const MetaClass* mc;
182 };
183
184 int MergeFeatures(
185 const MetaClass* mc,
186 mike 1.1.2.3 bool localOnly,
187 Uint32 flags,
188 MetaFeatureInfo features[META_MAX_FEATURES],
189 size_t& numFeatures);
190
|
193 mike 1.1.2.2 const MetaNameSpace* ns,
194 const MetaClass* mc,
195 Boolean localOnly,
196 Boolean includeQualifiers,
197 Boolean includeClassOrigin,
198 const char* const* propertyList,
199 class CIMClass& cc);
200
201 int MakeQualifierDecl(
202 const MetaNameSpace* ns,
203 const MetaQualifierDecl* mqd,
204 class CIMQualifierDecl& cqd);
205
|