version 1.1.2.1, 2007/09/28 02:34:52
|
version 1.1.2.6, 2007/09/29 20:36:30
|
|
|
#define PEGASUS_FLAG_WRITE (1 << 30) | #define PEGASUS_FLAG_WRITE (1 << 30) |
#define PEGASUS_FLAG_EMBEDDEDINSTANCE (1 << 31) | #define PEGASUS_FLAG_EMBEDDEDINSTANCE (1 << 31) |
| |
|
#define PEGASUS_SCOPE_SCHEMA (1 << 0) |
|
#define PEGASUS_SCOPE_CLASS (1 << 1) |
|
#define PEGASUS_SCOPE_ASSOCIATION (1 << 2) |
|
#define PEGASUS_SCOPE_INDICATION (1 << 3) |
|
#define PEGASUS_SCOPE_PROPERTY (1 << 4) |
|
#define PEGASUS_SCOPE_REFERENCE (1 << 5) |
|
#define PEGASUS_SCOPE_METHOD (1 << 6) |
|
#define PEGASUS_SCOPE_PARAMETER (1 << 7) |
|
#define PEGASUS_SCOPE_ANY (1|2|4|8|16|32|64|128) |
|
|
|
#define PEGASUS_FLAVOR_OVERRIDABLE (1 << 0) |
|
#define PEGASUS_FLAVOR_TOSUBCLASS (1 << 1) |
|
#define PEGASUS_FLAVOR_TOINSTANCE (1 << 2) |
|
#define PEGASUS_FLAVOR_TRANSLATABLE (1 << 3) |
|
#define PEGASUS_FLAVOR_DISABLEOVERRIDE (1 << 4) |
|
#define PEGASUS_FLAVOR_RESTRICTED (1 << 5) |
|
|
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
struct SourceFeature | struct SourceFeature |
{ | { |
Uint32 flags; | Uint32 flags; |
char* name; | char* name; |
|
const char** qualifiers; |
}; | }; |
| |
struct SourceProperty |
struct SourceProperty /* extends SourceFeature */ |
{ | { |
// Inherited fields (from SourceFeature): |
// Inherited fields: |
Uint32 flags; | Uint32 flags; |
char* name; | char* name; |
|
const char** qualifiers; |
| |
// Local fields: | // Local fields: |
Uint16 type; | Uint16 type; |
Sint16 subscript; | Sint16 subscript; |
|
const char* value; |
|
}; |
|
|
|
struct SourceReference /* extends SourceFeature */ |
|
{ |
|
// Inherited fields: |
|
Uint32 flags; |
|
char* name; |
|
const char** qualifiers; |
|
|
|
// Local fields: |
|
Sint16 subscript; |
struct SourceClass* refClass; | struct SourceClass* refClass; |
}; | }; |
| |
struct SourceMethod |
struct SourceMethod /* extends SourceFeature */ |
{ | { |
// Inherited fields (from SourceFeature): |
// Inherited fields: |
Uint32 flags; | Uint32 flags; |
char* name; | char* name; |
|
const char** qualifiers; |
| |
// Local fields: | // Local fields: |
Uint32 type; |
Uint16 type; |
SourceFeature** features; |
SourceProperty** parameters; |
Uint32 numFeatures; |
|
}; | }; |
| |
struct SourceClass | struct SourceClass |
{ | { |
Uint32 flags; | Uint32 flags; |
char* name; | char* name; |
|
const char** qualifiers; |
SourceClass* super; | SourceClass* super; |
SourceFeature** features; | SourceFeature** features; |
}; | }; |
| |
|
struct SourceQualifierDecl |
|
{ |
|
char* name; |
|
Uint16 type; |
|
Sint16 subscript; |
|
Uint16 scope; |
|
Uint16 flavor; |
|
const char* value; |
|
}; |
|
|
struct SourceNameSpace | struct SourceNameSpace |
{ | { |
char* nameSpace; | char* nameSpace; |
|
SourceQualifierDecl** qualifiers; |
SourceClass** classes; | SourceClass** classes; |
}; | }; |
| |
|
|
SourceNameSpace** nameSpaces; | SourceNameSpace** nameSpaces; |
}; | }; |
| |
PEGASUS_REPOSITORY_LINKAGE size_t FlagNameToIndex(const char* name); |
|
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
#endif /* Pegasus_SourceTypes_h */ | #endif /* Pegasus_SourceTypes_h */ |