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

  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               
 91               PEGASUS_NAMESPACE_BEGIN
 92               
 93               struct MetaFeature
 94               {
 95                   Uint32 flags;
 96                   char* name;
 97                   const char** qualifiers;
 98               };
 99               
100               struct MetaProperty /* extends MetaFeature */
101               {
102                   // Inherited fields:
103                   Uint32 flags;
104                   char* name;
105                   const char** qualifiers;
106 mike  1.1.2.1 
107                   // Local fields:
108                   Uint16 type;
109                   Sint16 subscript;
110                   const char* value;
111               };
112               
113               struct MetaReference /* extends MetaFeature */
114               {
115                   // Inherited fields:
116                   Uint32 flags;
117                   char* name;
118                   const char** qualifiers;
119               
120                   // Local fields:
121                   Sint16 subscript;
122                   struct MetaClass* ref;
123               };
124               
125               struct MetaMethod /* extends MetaFeature */
126               {
127 mike  1.1.2.1     // Inherited fields:
128                   Uint32 flags;
129                   char* name;
130                   const char** qualifiers;
131               
132                   // Local fields:
133                   Uint16 type;
134                   MetaFeature** parameters;
135               };
136               
137               struct MetaClass
138               {
139                   Uint32 flags;
140                   char* name;
141                   const char** qualifiers;
142                   struct MetaClass* super;
143                   MetaFeature** features;
144               };
145               
146               struct MetaQualifierDecl
147               {
148 mike  1.1.2.1     char* name;
149                   Uint16 type;
150                   Sint16 subscript;
151                   Uint16 scope;
152                   Uint16 flavor;
153                   const char* value;
154               };
155               
156               struct MetaNameSpace
157               {
158                   char* name;
159                   MetaQualifierDecl** qualifiers;
160                   MetaClass** classes;
161               };
162               
163 mike  1.1.2.2 int MakeClass(
164                   const MetaNameSpace* ns,
165                   const MetaClass* mc,
166                   Boolean localOnly,
167                   Boolean includeQualifiers,
168                   Boolean includeClassOrigin,
169                   const char* const* propertyList,
170                   class CIMClass& cc);
171               
172               int MakeQualifierDecl(
173                   const MetaNameSpace* ns,
174                   const MetaQualifierDecl* mqd,
175                   class CIMQualifierDecl& cqd);
176               
177 mike  1.1.2.1 PEGASUS_NAMESPACE_END
178               
179               #endif /* Pegasus_MetaTypes_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2