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

Diff for /pegasus/src/Pegasus/IndicationService/IndicationOperationAggregate.cpp between version 1.18 and 1.19

version 1.18, 2006/04/18 19:08:44 version 1.19, 2006/07/21 18:30:28
Line 54 
Line 54 
     const Array<CIMName>& indicationSubclasses)     const Array<CIMName>& indicationSubclasses)
 :   _origRequest(origRequest), :   _origRequest(origRequest),
     _indicationSubclasses(indicationSubclasses),     _indicationSubclasses(indicationSubclasses),
     _numberIssued(0),      _numberIssued(0)
     _magicNumber(_theMagicNumber)  {
 {}  }
  
 IndicationOperationAggregate::~IndicationOperationAggregate() IndicationOperationAggregate::~IndicationOperationAggregate()
 { {
     _magicNumber = 0;  
     delete _origRequest;     delete _origRequest;
  
     Uint32 numberRequests = getNumberRequests();      Uint32 numberRequests = _requestList.size();
     for (Uint32 i = 0; i < numberRequests; i++)     for (Uint32 i = 0; i < numberRequests; i++)
     {     {
         //          delete _requestList[i];
         //  Since deleteRequest also removes the element from the array,  
         //  delete first element of the array each time  
         //  
         _deleteRequest (0);  
     }     }
     Uint32 numberResponses = getNumberResponses();  
       Uint32 numberResponses = _responseList.size();
     for (Uint32 j = 0; j < numberResponses; j++)     for (Uint32 j = 0; j < numberResponses; j++)
     {     {
         //          delete _responseList[j];
         //  Since deleteResponse also removes the element from the array,  
         //  delete first element of the array each time  
         //  
         _deleteResponse (0);  
     }  
 } }
   
 Boolean IndicationOperationAggregate::isValid() const  
 {  
     return (_magicNumber == _theMagicNumber);  
 } }
  
 CIMRequestMessage* IndicationOperationAggregate::getOrigRequest() const CIMRequestMessage* IndicationOperationAggregate::getOrigRequest() const
Line 105 
Line 92 
     }     }
 } }
  
 String IndicationOperationAggregate::getOrigMessageId() const  
 {  
     if (_origRequest == 0)  
     {  
         return String::EMPTY;  
     }  
     else  
     {  
         return _origRequest->messageId;  
     }  
 }  
   
 Uint32 IndicationOperationAggregate::getOrigDest() const  
 {  
     if (_origRequest == 0)  
     {  
         return 0;  
     }  
     else  
     {  
         return _origRequest->queueIds.top();  
     }  
 }  
   
 Boolean IndicationOperationAggregate::requiresResponse() const Boolean IndicationOperationAggregate::requiresResponse() const
 { {
     if ((getOrigType() == CIM_CREATE_INSTANCE_REQUEST_MESSAGE) ||     if ((getOrigType() == CIM_CREATE_INSTANCE_REQUEST_MESSAGE) ||
Line 148 
Line 111 
     return _indicationSubclasses;     return _indicationSubclasses;
 } }
  
 void IndicationOperationAggregate::setPath(const CIMObjectPath& path)  
 {  
     _path = path;  
 }  
   
 const CIMObjectPath& IndicationOperationAggregate::getPath()  
 {  
     return _path;  
 }  
   
 Uint32 IndicationOperationAggregate::getNumberIssued() const Uint32 IndicationOperationAggregate::getNumberIssued() const
 { {
     return _numberIssued;     return _numberIssued;
Line 269 
Line 222 
     return provider;     return provider;
 } }
  
 void IndicationOperationAggregate::_deleteRequest (Uint32 pos)  
 {  
     delete _requestList[pos];  
     _requestList.remove(pos);  
 }  
   
 void IndicationOperationAggregate::_deleteResponse (Uint32 pos)  
 {  
     delete _responseList[pos];  
     _responseList.remove(pos);  
 }  
   
 const Uint32 IndicationOperationAggregate::_theMagicNumber = 98765;  
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2