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

Diff for /pegasus/src/Pegasus/Provider/CIMOMHandle.cpp between version 1.65 and 1.66

version 1.65, 2004/12/24 09:59:35 version 1.66, 2005/01/07 10:35:06
Line 28 
Line 28 
 // Author: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) // Author: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 // //
 // Modified By:  Josephine Eskaline Joyce (jojustin@in.ibm.com) for PEP101 // Modified By:  Josephine Eskaline Joyce (jojustin@in.ibm.com) for PEP101
   //               Josephine Eskaline Joyce (jojustin@in.ibm.com) for Bug#2486
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 39 
Line 40 
 #include "ClientCIMOMHandleRep.h" #include "ClientCIMOMHandleRep.h"
  
 #include "CIMOMHandle.h" #include "CIMOMHandle.h"
 #include <Pegasus/Common/AutoPtr.h>  
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 CIMOMHandle::CIMOMHandle(void) CIMOMHandle::CIMOMHandle(void)
 { {
     // The existence of a BinaryMessageHandler determines which Rep to use     // The existence of a BinaryMessageHandler determines which Rep to use
     AutoPtr<MessageQueue> bmh(MessageQueue::lookup(PEGASUS_QUEUENAME_BINARY_HANDLER));      MessageQueue* bmh = MessageQueue::lookup(PEGASUS_QUEUENAME_BINARY_HANDLER);
       if (bmh != 0)
     if (bmh.get() != 0)  
     {     {
         // A BinaryMessageHandler exists.  We can use InternalCIMOMHandleRep         // A BinaryMessageHandler exists.  We can use InternalCIMOMHandleRep
         _rep = new InternalCIMOMHandleRep();         _rep = new InternalCIMOMHandleRep();
Line 58 
Line 58 
         // No BinaryMessageHandler exists.  We must use ClientCIMOMHandleRep         // No BinaryMessageHandler exists.  We must use ClientCIMOMHandleRep
         _rep = new ClientCIMOMHandleRep();         _rep = new ClientCIMOMHandleRep();
     }     }
     bmh.release();  
 } }
  
 #ifdef PEGASUS_OS_OS400 #ifdef PEGASUS_OS_OS400
 CIMOMHandle::CIMOMHandle(Uint32 os400UserStateKey) CIMOMHandle::CIMOMHandle(Uint32 os400UserStateKey)
 { {
     // The existence of a BinaryMessageHandler determines which Rep to use     // The existence of a BinaryMessageHandler determines which Rep to use
     AutoPtr<MessageQueue> bmh(MessageQueue::lookup(PEGASUS_QUEUENAME_BINARY_HANDLER));      MessageQueue* bmh = MessageQueue::lookup(PEGASUS_QUEUENAME_BINARY_HANDLER);
     if (bmh.get() != 0)      if (bmh != 0)
     {     {
         // A BinaryMessageHandler exists.  We can use InternalCIMOMHandleRep         // A BinaryMessageHandler exists.  We can use InternalCIMOMHandleRep
         _rep = new InternalCIMOMHandleRep(os400UserStateKey);         _rep = new InternalCIMOMHandleRep(os400UserStateKey);
Line 76 
Line 75 
         // No BinaryMessageHandler exists.  We must use ClientCIMOMHandleRep         // No BinaryMessageHandler exists.  We must use ClientCIMOMHandleRep
         _rep = new ClientCIMOMHandleRep();         _rep = new ClientCIMOMHandleRep();
     }     }
     bmh.release();  
 } }
  
 void CIMOMHandle::setOS400ProfileHandle(const char * profileHandle) void CIMOMHandle::setOS400ProfileHandle(const char * profileHandle)


Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2