version 1.6, 2001/06/16 17:30:37
|
version 1.11, 2002/05/24 19:20:33
|
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
#define PEGASUS_ARRAY_T QPair |
|
# include "ArrayImpl.h" |
|
#undef PEGASUS_ARRAY_T |
|
|
|
#define PEGASUS_ARRAY_T CPair |
|
# include "ArrayImpl.h" |
|
#undef PEGASUS_ARRAY_T |
|
|
|
DeclContext::~DeclContext() | DeclContext::~DeclContext() |
{ | { |
| |
|
|
const String& nameSpace, | const String& nameSpace, |
const CIMQualifierDecl& x) | const CIMQualifierDecl& x) |
{ | { |
if (lookupQualifierDecl(nameSpace, x.getName())) |
if (!lookupQualifierDecl(nameSpace, x.getName()).isNull()) |
throw AlreadyExists(); | throw AlreadyExists(); |
| |
_qualifierDeclarations.append(QPair(nameSpace, x)); | _qualifierDeclarations.append(QPair(nameSpace, x)); |
|
|
const String& nameSpace, | const String& nameSpace, |
const CIMClass& x) | const CIMClass& x) |
{ | { |
if (lookupClass(nameSpace, x.getClassName())) |
if (!lookupClass(nameSpace, x.getClassName()).isNull()) |
throw AlreadyExists(); | throw AlreadyExists(); |
| |
_classDeclarations.append(CPair(nameSpace, x)); | _classDeclarations.append(CPair(nameSpace, x)); |