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

Diff for /pegasus/src/Pegasus/Common/CIMResponseData.cpp between version 1.2.2.19 and 1.2.2.20

version 1.2.2.19, 2009/11/19 16:39:01 version 1.2.2.20, 2009/11/23 08:10:21
Line 329 
Line 329 
                 {                 {
                     _instances.append(CIMInstance());                     _instances.append(CIMInstance());
                 }                 }
                 out.putInstance(_instances[0], false, false);                  out.putInstance(_instances[0], true, true);
                 break;                 break;
             }             }
             case RESP_INSTANCES:             case RESP_INSTANCES:
             {             {
                 out.putInstanceA(_instances, false);                  out.putInstanceA(_instances);
                 break;                 break;
             }             }
             case RESP_OBJECTS:             case RESP_OBJECTS:
Line 741 
Line 741 
         _encoding,         _encoding,
         _dataType));         _dataType));
  
       // For mixed (CIM+SCMO) responses, we need to tell the receiver the
       // total number of instances. The totalSize variable is used to keep track
       // of this.
       Uint32 totalSize = 0;
   
     // already existing Internal XML does not need to be encoded further     // already existing Internal XML does not need to be encoded further
     // binary input is not actually impossible here, but we have an established     // binary input is not actually impossible here, but we have an established
     // fallback     // fallback
Line 765 
Line 770 
             case RESP_INSTANCES:             case RESP_INSTANCES:
             {             {
                 Uint32 n = _instances.size();                 Uint32 n = _instances.size();
                 out.putUint32(n);                  totalSize = n + _scmoInstances.size();
                   out.putUint32(totalSize);
                 for (Uint32 i = 0; i < n; i++)                 for (Uint32 i = 0; i < n; i++)
                 {                 {
                     CIMInternalXmlEncoder::_putXMLNamedInstance(                     CIMInternalXmlEncoder::_putXMLNamedInstance(
Line 777 
Line 783 
             case RESP_OBJECTS:             case RESP_OBJECTS:
             {             {
                 Uint32 n = _objects.size();                 Uint32 n = _objects.size();
                 out.putUint32(n);                  totalSize = n + _scmoInstances.size();
                   out.putUint32(totalSize);
                 for (Uint32 i = 0; i < n; i++)                 for (Uint32 i = 0; i < n; i++)
                 {                 {
                     CIMInternalXmlEncoder::_putXMLObject(out, _objects[i]);                     CIMInternalXmlEncoder::_putXMLObject(out, _objects[i]);
Line 810 
Line 817 
             case RESP_INSTANCES:             case RESP_INSTANCES:
             {             {
                 Uint32 n = _scmoInstances.size();                 Uint32 n = _scmoInstances.size();
                   // Only put the size when not already done above
                   if (0==totalSize)
                   {
                 out.putUint32(n);                 out.putUint32(n);
                   }
                 for (Uint32 i = 0; i < n; i++)                 for (Uint32 i = 0; i < n; i++)
                 {                 {
                     SCMOInternalXmlEncoder::_putXMLNamedInstance(                     SCMOInternalXmlEncoder::_putXMLNamedInstance(
Line 822 
Line 833 
             case RESP_OBJECTS:             case RESP_OBJECTS:
             {             {
                 Uint32 n = _scmoInstances.size();                 Uint32 n = _scmoInstances.size();
                   // Only put the size when not already done above
                   if (0==totalSize)
                   {
                 out.putUint32(n);                 out.putUint32(n);
                   }
                 for (Uint32 i = 0; i < n; i++)                 for (Uint32 i = 0; i < n; i++)
                 {                 {
                     SCMOInternalXmlEncoder::_putXMLObject(                     SCMOInternalXmlEncoder::_putXMLObject(


Legend:
Removed from v.1.2.2.19  
changed lines
  Added in v.1.2.2.20

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2