(file) Return to CIMOMHandleQueryContext.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Provider

Diff for /pegasus/src/Pegasus/Provider/CIMOMHandleQueryContext.cpp between version 1.3 and 1.4

version 1.3, 2006/01/30 16:17:59 version 1.4, 2006/11/14 18:34:54
Line 29 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // 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)
 { {
Line 58 
Line 54 
 { {
 } }
  
 CIMOMHandleQueryContext& CIMOMHandleQueryContext::operator=(const CIMOMHandleQueryContext& rhs)  CIMOMHandleQueryContext& CIMOMHandleQueryContext::operator=(
       const CIMOMHandleQueryContext& rhs)
 { {
   if (this == &rhs)   if (this == &rhs)
     return *this;     return *this;
Line 80 
Line 77 
  
   // 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,
Line 90 
Line 88 
   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)
Line 121 
Line 122 
   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)
Line 148 
Line 150 
 } }
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
   


Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2