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_SourceTypes_h
35 #define Pegasus_SourceTypes_h
36
37 #include <Pegasus/Common/Config.h>
38 #include <Pegasus/Common/CIMType.h>
39 #include "Linkage.h"
40
41 #define PEGASUS_FLAG_PROPERTY (1 << 0)
42 #define PEGASUS_FLAG_REFERENCE (1 << 1)
43 mike 1.1.2.1 #define PEGASUS_FLAG_METHOD (1 << 2)
44 #define PEGASUS_FLAG_CLASS (1 << 3)
45 #define PEGASUS_FLAG_ABSTRACT (1 << 4)
46 #define PEGASUS_FLAG_AGGREGATE (1 << 5)
47 #define PEGASUS_FLAG_AGGREGATION (1 << 6)
48 #define PEGASUS_FLAG_ASSOCIATION (1 << 7)
49 #define PEGASUS_FLAG_COMPOSITION (1 << 8)
50 #define PEGASUS_FLAG_COUNTER (1 << 9)
51 #define PEGASUS_FLAG_DELETE (1 << 10)
52 #define PEGASUS_FLAG_DN (1 << 11)
53 #define PEGASUS_FLAG_EMBEDDEDOBJECT (1 << 12)
54 #define PEGASUS_FLAG_EXCEPTION (1 << 13)
55 #define PEGASUS_FLAG_EXPENSIVE (1 << 14)
56 #define PEGASUS_FLAG_EXPERIMENTAL (1 << 15)
57 #define PEGASUS_FLAG_GAUGE (1 << 16)
58 #define PEGASUS_FLAG_IFDELETED (1 << 17)
59 #define PEGASUS_FLAG_IN (1 << 18)
60 #define PEGASUS_FLAG_INDICATION (1 << 19)
61 #define PEGASUS_FLAG_INVISIBLE (1 << 20)
62 #define PEGASUS_FLAG_KEY (1 << 21)
63 #define PEGASUS_FLAG_LARGE (1 << 22)
64 mike 1.1.2.1 #define PEGASUS_FLAG_OCTETSTRING (1 << 23)
65 #define PEGASUS_FLAG_OUT (1 << 24)
66 #define PEGASUS_FLAG_READ (1 << 25)
67 #define PEGASUS_FLAG_REQUIRED (1 << 26)
68 #define PEGASUS_FLAG_STATIC (1 << 27)
69 #define PEGASUS_FLAG_TERMINAL (1 << 28)
70 #define PEGASUS_FLAG_WEAK (1 << 29)
71 #define PEGASUS_FLAG_WRITE (1 << 30)
72 #define PEGASUS_FLAG_EMBEDDEDINSTANCE (1 << 31)
73
74 PEGASUS_NAMESPACE_BEGIN
75
76 struct SourceFeature
77 {
78 Uint32 flags;
79 char* name;
80 };
81
82 struct SourceProperty
83 {
84 // Inherited fields (from SourceFeature):
85 mike 1.1.2.1 Uint32 flags;
86 char* name;
87
88 // Local fields:
89 Uint16 type;
90 Sint16 subscript;
91 struct SourceClass* refClass;
92 };
93
94 struct SourceMethod
95 {
96 // Inherited fields (from SourceFeature):
97 Uint32 flags;
98 char* name;
99
100 // Local fields:
101 Uint32 type;
102 SourceFeature** features;
103 Uint32 numFeatures;
104 };
105
106 mike 1.1.2.1 struct SourceClass
107 {
108 Uint32 flags;
109 char* name;
110 SourceClass* super;
111 SourceFeature** features;
112 };
113
114 struct SourceNameSpace
115 {
116 char* nameSpace;
117 SourceClass** classes;
118 };
119
120 struct SourceRepository
121 {
122 SourceNameSpace** nameSpaces;
123 };
124
125 PEGASUS_REPOSITORY_LINKAGE size_t FlagNameToIndex(const char* name);
126
127 mike 1.1.2.1 PEGASUS_NAMESPACE_END
128
129 #endif /* Pegasus_SourceTypes_h */
|