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

Diff for /pegasus/src/Pegasus/ProviderManager2/OperationResponseHandler.cpp between version 1.11.8.4 and 1.13.2.1

version 1.11.8.4, 2006/03/10 14:30:39 version 1.13.2.1, 2006/02/28 19:53:30
Line 40 
Line 40 
 #include "OperationResponseHandler.h" #include "OperationResponseHandler.h"
  
 #include <Pegasus/Common/Logger.h> #include <Pegasus/Common/Logger.h>
 #include <Pegasus/Provider/CIMOMHandle.h>  
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 /**********************************************************  
  * Define CIMOMHandleContext class  
  **********************************************************/  
 class CIMOMHandleContext : public NormalizerContext  
 {  
 public:  
     CIMOMHandleContext() {}  
     virtual ~CIMOMHandleContext() {}  
   
     virtual CIMClass getClass(  
               const CIMNamespaceName& nameSpace,  
               const CIMName& name);  
   
     virtual Array<CIMName> enumerateClassNames(  
         const CIMNamespaceName& nameSpace, const CIMName& className,  
         bool deepInheritance);  
   
     virtual AutoPtr<NormalizerContext> clone();  
   
 protected:  
     CIMOMHandleContext(CIMOMHandle & hndl) : handle(hndl) {}  
 private:  
     CIMOMHandle handle;  
     OperationContext emptyContext;  
 };  
   
 CIMClass CIMOMHandleContext::getClass(  
     const CIMNamespaceName& nameSpace,  
     const CIMName& name)  
 {  
     // Get the whole class definition  
     return handle.getClass(emptyContext, nameSpace, name, false, true, true,  
         CIMPropertyList());  
 }  
   
 Array<CIMName> CIMOMHandleContext::enumerateClassNames(  
     const CIMNamespaceName& nameSpace, const CIMName& className,  
     bool deepInheritance)  
 {  
     return handle.enumerateClassNames(emptyContext, nameSpace, className,  
         deepInheritance);  
 }  
   
 AutoPtr<NormalizerContext> CIMOMHandleContext::clone()  
 {  
   AutoPtr<NormalizerContext> tmpPtr(new CIMOMHandleContext(handle));  
   return tmpPtr;  
 }  
   
 /**********************************************************  
  * End CIMOMHandleContext class  
  **********************************************************/  
   
 // //
 // OperationResponseHandler // OperationResponseHandler
 // //
Line 340 
Line 286 
             request->operationContext.get(CachedClassDefinitionContainer::NAME);             request->operationContext.get(CachedClassDefinitionContainer::NAME);
  
         cimClass = container.getClass();         cimClass = container.getClass();
   
     }     }
     catch(Exception &)     catch(Exception &)
     {     {
Line 347 
Line 294 
         // for this operation.         // for this operation.
     }     }
  
     AutoPtr<NormalizerContext> tmpContext(new CIMOMHandleContext());      _normalizer =
     ObjectNormalizer tmpNormalizer(          ObjectNormalizer(
         cimClass,         cimClass,
         request->includeQualifiers,         request->includeQualifiers,
         request->includeClassOrigin,              request->includeClassOrigin);
         request->nameSpace,  
         tmpContext);  
     _normalizer = tmpNormalizer;  
     #endif     #endif
 } }
  
Line 465 
Line 409 
         // for this operation.         // for this operation.
     }     }
  
     AutoPtr<NormalizerContext> tmpContext(new CIMOMHandleContext());      _normalizer =
     ObjectNormalizer tmpNormalizer(          ObjectNormalizer(
         cimClass,         cimClass,
         request->includeQualifiers,         request->includeQualifiers,
         request->includeClassOrigin,              request->includeClassOrigin);
         request->nameSpace,  
         tmpContext);  
     _normalizer = tmpNormalizer;  
 #endif #endif
 } }
  
Line 536 
Line 477 
         // for this operation.         // for this operation.
     }     }
  
     AutoPtr<NormalizerContext> tmpContext(new CIMOMHandleContext());      _normalizer =
     ObjectNormalizer tmpNormalizer(          ObjectNormalizer(
         cimClass,         cimClass,
         false,         false,
         false,              false);
         request->nameSpace,  
         tmpContext);  
     _normalizer = tmpNormalizer;  
 #endif #endif
 } }
  


Legend:
Removed from v.1.11.8.4  
changed lines
  Added in v.1.13.2.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2