version 1.3, 2006/01/30 16:17:59
|
version 1.4, 2006/11/14 18:34:54
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Authors: David Rosckes (rosckes@us.ibm.com) |
|
// Bert Rivero (hurivero@us.ibm.com) |
|
// Chuck Carmack (carmack@us.ibm.com) |
|
// Brian Lucier (lucier@us.ibm.com) |
|
// |
|
// Modified By: |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#include "CIMOMHandleQueryContext.h" | #include "CIMOMHandleQueryContext.h" |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
CIMOMHandleQueryContext::CIMOMHandleQueryContext(const CIMNamespaceName& inNS, CIMOMHandle& handle) |
CIMOMHandleQueryContext::CIMOMHandleQueryContext( |
|
const CIMNamespaceName& inNS, |
|
CIMOMHandle& handle) |
:QueryContext(inNS), | :QueryContext(inNS), |
_CH(handle) | _CH(handle) |
{ | { |
} | } |
| |
CIMOMHandleQueryContext::CIMOMHandleQueryContext(const CIMOMHandleQueryContext& handle) |
CIMOMHandleQueryContext::CIMOMHandleQueryContext( |
|
const CIMOMHandleQueryContext& handle) |
:QueryContext(handle), | :QueryContext(handle), |
_CH(handle._CH) | _CH(handle._CH) |
{ | { |
|
|
{ | { |
} | } |
| |
CIMOMHandleQueryContext& CIMOMHandleQueryContext::operator=(const CIMOMHandleQueryContext& rhs) |
CIMOMHandleQueryContext& CIMOMHandleQueryContext::operator=( |
|
const CIMOMHandleQueryContext& rhs) |
{ | { |
if (this == &rhs) | if (this == &rhs) |
return *this; | return *this; |
|
|
| |
// ATTN - constructing OperationContext from scratch may be a problem | // ATTN - constructing OperationContext from scratch may be a problem |
// once security is added to that object | // once security is added to that object |
CIMClass _class = tmp.getClass(OperationContext(), |
CIMClass _class = tmp.getClass( |
|
OperationContext(), |
getNamespace(), | getNamespace(), |
inClassName, | inClassName, |
localOnly, | localOnly, |
|
|
return _class; | return _class; |
} | } |
| |
Array<CIMName> CIMOMHandleQueryContext::enumerateClassNames(const CIMName& inClassName)const |
Array<CIMName> CIMOMHandleQueryContext::enumerateClassNames( |
|
const CIMName& inClassName) const |
{ | { |
CIMOMHandle tmp = _CH; | CIMOMHandle tmp = _CH; |
// ATTN - constructing OperationContext from scratch may be a problem | // ATTN - constructing OperationContext from scratch may be a problem |
// once security is added to that object | // once security is added to that object |
return tmp.enumerateClassNames(OperationContext(), |
return tmp.enumerateClassNames( |
|
OperationContext(), |
getNamespace(), | getNamespace(), |
inClassName, | inClassName, |
true); // deepInheritance | true); // deepInheritance |
} | } |
| |
Boolean CIMOMHandleQueryContext::isSubClass(const CIMName& baseClass, |
Boolean CIMOMHandleQueryContext::isSubClass( |
|
const CIMName& baseClass, |
const CIMName& derivedClass)const | const CIMName& derivedClass)const |
{ | { |
if (baseClass == derivedClass) | if (baseClass == derivedClass) |
|
|
return false; | return false; |
} | } |
| |
QueryContext::ClassRelation CIMOMHandleQueryContext::getClassRelation(const CIMName& anchorClass, |
QueryContext::ClassRelation CIMOMHandleQueryContext::getClassRelation( |
|
const CIMName& anchorClass, |
const CIMName& relatedClass)const | const CIMName& relatedClass)const |
{ | { |
if (anchorClass == relatedClass) | if (anchorClass == relatedClass) |
|
|
} | } |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
|
|