version 1.1.2.6, 2007/10/03 00:03:14
|
version 1.1.2.7, 2007/10/03 00:14:06
|
|
|
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#include "MetaTypes.h" |
|
#include <cstdarg> | #include <cstdarg> |
#include <cassert> | #include <cassert> |
#include "MetaRepository.h" | #include "MetaRepository.h" |
#include <Pegasus/Common/System.h> | #include <Pegasus/Common/System.h> |
|
#include "MetaTypes.h" |
#if 0 |
|
# define TEST_META_REPOSITORY |
|
#endif |
|
|
|
#if defined(TEST_META_REPOSITORY) |
|
# include "root_cimv2_namespace.h" |
|
# include "root_PG_Internal_namespace.h" |
|
# include "root_PG_InterOp_namespace.h" |
|
#endif |
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
static const size_t _MAX_FEATURES = 1024; | static const size_t _MAX_FEATURES = 1024; |
static const size_t _MAX_QUALIFIERS = 1024; | static const size_t _MAX_QUALIFIERS = 1024; |
| |
static inline void _init() |
|
{ |
|
#if defined(TEST_META_REPOSITORY) |
|
if (_nameSpacesSize == 0) |
|
{ |
|
MetaRepository::addNameSpace(&root_PG_InterOp_namespace); |
|
MetaRepository::addNameSpace(&root_cimv2_namespace); |
|
MetaRepository::addNameSpace(&root_PG_Internal_namespace); |
|
} |
|
#endif |
|
} |
|
|
|
//============================================================================== | //============================================================================== |
// | // |
// Local definitions: | // Local definitions: |
|
|
const CIMPropertyList& propertyList) | const CIMPropertyList& propertyList) |
{ | { |
printf("===== MetaRepository::getClass()\n"); | printf("===== MetaRepository::getClass()\n"); |
_init(); |
|
| |
// Lookup namespace: | // Lookup namespace: |
| |
|
|
Boolean includeClassOrigin) | Boolean includeClassOrigin) |
{ | { |
printf("===== MetaRepository::enumerateClasses()\n"); | printf("===== MetaRepository::enumerateClasses()\n"); |
_init(); |
|
| |
// Lookup namespace: | // Lookup namespace: |
| |
|
|
Boolean deepInheritance) | Boolean deepInheritance) |
{ | { |
printf("===== MetaRepository::enumerateClassNames()\n"); | printf("===== MetaRepository::enumerateClassNames()\n"); |
_init(); |
|
| |
// Lookup namespace: | // Lookup namespace: |
| |
|
|
Array<CIMName>& subClassNames) | Array<CIMName>& subClassNames) |
{ | { |
printf("===== MetaRepository::getSubClassNames()\n"); | printf("===== MetaRepository::getSubClassNames()\n"); |
_init(); |
|
| |
subClassNames = MetaRepository::enumerateClassNames( | subClassNames = MetaRepository::enumerateClassNames( |
nameSpace, className, deepInheritance); | nameSpace, className, deepInheritance); |
|
|
Array<CIMName>& superClassNames) | Array<CIMName>& superClassNames) |
{ | { |
printf("===== MetaRepository::getSuperClassNames()\n"); | printf("===== MetaRepository::getSuperClassNames()\n"); |
_init(); |
|
| |
superClassNames.clear(); | superClassNames.clear(); |
| |
|
|
Array<CIMNamespaceName> MetaRepository::enumerateNameSpaces() | Array<CIMNamespaceName> MetaRepository::enumerateNameSpaces() |
{ | { |
printf("===== MetaRepository::enumerateNameSpaces()\n"); | printf("===== MetaRepository::enumerateNameSpaces()\n"); |
_init(); |
|
| |
Array<CIMNamespaceName> nameSpaces; | Array<CIMNamespaceName> nameSpaces; |
| |
|
|
const CIMName& qualifierName) | const CIMName& qualifierName) |
{ | { |
printf("===== MetaRepository::getQualifier()\n"); | printf("===== MetaRepository::getQualifier()\n"); |
_init(); |
|
| |
// Lookup namespace: | // Lookup namespace: |
| |
|
|
const CIMNamespaceName& nameSpace) | const CIMNamespaceName& nameSpace) |
{ | { |
printf("===== MetaRepository::enumerateQualifiers()\n"); | printf("===== MetaRepository::enumerateQualifiers()\n"); |
_init(); |
|
| |
// Lookup namespace: | // Lookup namespace: |
| |