(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.5.2.27 and 1.5.2.28

version 1.5.2.27, 2014/05/15 20:52:48 version 1.5.2.28, 2014/06/01 19:26:52
Line 700 
Line 700 
          boolToString(RESP_ENC_BINARY == (_encoding & RESP_ENC_BINARY))          boolToString(RESP_ENC_BINARY == (_encoding & RESP_ENC_BINARY))
                               ));                               ));
     }     }
 ////  PEG_TRACE((TRC_XML, Tracer::LEVEL1, "ReturnSize=%u", _size ));  
 #endif #endif
     return _size;     return _size;
 } }
Line 713 
Line 712 
 { {
     PEG_METHOD_ENTER(TRC_DISPATCHER,     PEG_METHOD_ENTER(TRC_DISPATCHER,
         "CIMResponseData::appendResponseData");         "CIMResponseData::appendResponseData");
   
       PEGASUS_DEBUG_ASSERT(valid());
   
     // Confirm that the CIMResponseData type matches the type     // Confirm that the CIMResponseData type matches the type
     // of the data being appended     // of the data being appended
       // A CIMResponseData must represent a single data content type.
       // ex. Cannot mix objects and instances.
  
     PEGASUS_DEBUG_ASSERT(valid());            // KS_TEMP  
     PEGASUS_DEBUG_ASSERT(_dataType == x._dataType);     PEGASUS_DEBUG_ASSERT(_dataType == x._dataType);
     _encoding |= x._encoding;     _encoding |= x._encoding;
  
Line 735 
Line 738 
     _scmoInstances.appendArray(x._scmoInstances);     _scmoInstances.appendArray(x._scmoInstances);
     _size += x._scmoInstances.size();     _size += x._scmoInstances.size();
  
 ////  // add Xml encodings  
 ////  // KS_TODO these are temporary. delete before release  
 ////  PEGASUS_ASSERT(x._referencesData.size() == x._instanceData.size());  
 ////  PEGASUS_ASSERT(x._instanceData.size() == x._hostsData.size());  
 ////  PEGASUS_ASSERT(x._instanceData.size() == x._nameSpacesData.size());  
   
     _referencesData.appendArray(x._referencesData);     _referencesData.appendArray(x._referencesData);
     _instanceData.appendArray(x._instanceData);     _instanceData.appendArray(x._instanceData);
     _hostsData.appendArray(x._hostsData);     _hostsData.appendArray(x._hostsData);
Line 1079 
Line 1076 
             }             }
         }         }
     }     }
 ////  PEG_TRACE(( TRC_DISPATCHER, Tracer::LEVEL4,   // KS_TODO TEMP  
 ////    "completeHostNameAndNamespace Set hostName, etc "  
 ////    "host %s ns %s set for dataType=%u encoding=%u isPull=%s",  
 ////        (const char *)hn.getCString(),  
 ////        (const char *)ns.getString().getCString(),  
 ////        _dataType, _encoding, boolToString(isPullOperation) ));  
   
   
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
 } }
  
Line 1295 
Line 1284 
                     // If pull, map to instances                     // If pull, map to instances
                     if (isPullResponse)                     if (isPullResponse)
                     {                     {
   
                         CIMInstance x = (CIMInstance)_objects[i];                         CIMInstance x = (CIMInstance)_objects[i];
                           if (encodeInstanceOnly)
                           {
                               XmlWriter::appendInstanceElement(
                                   out,
                                   x,
                                   _includeQualifiers,
                                   _includeClassOrigin,
                                   _propertyList);
                           }
                           else
                           {
                         XmlWriter::appendValueInstanceWithPathElement(                         XmlWriter::appendValueInstanceWithPathElement(
                             out,                             out,
                             x,                             x,
Line 1303 
Line 1304 
                             _includeClassOrigin,                             _includeClassOrigin,
                             _propertyList);                             _propertyList);
                     }                     }
                       }
                     else                     else
                     {                     {
                         XmlWriter::appendValueObjectWithPathElement(                         XmlWriter::appendValueObjectWithPathElement(
Line 1387 
Line 1389 
                     // OpenQueryInstances and pullInstances                     // OpenQueryInstances and pullInstances
                     if (encodeInstanceOnly)                     if (encodeInstanceOnly)
                     {                     {
                           // KS_TODO move this to SCMOXmlWriter
                         for (Uint32 i = 0, n = _scmoInstances.size();i < n; i++)                         for (Uint32 i = 0, n = _scmoInstances.size();i < n; i++)
                         {                         {
                             _appendInstanceElement(out, _scmoInstances[i]);                             _appendInstanceElement(out, _scmoInstances[i]);
Line 1409 
Line 1412 
             {             {
                 if (isPullResponse)                 if (isPullResponse)
                 {                 {
                       // if encodeInstanceOnly flag, encode objects as instances
                       // Used by OpenQueryInstances and pullInstances.
                       if (encodeInstanceOnly)
                       {
                           for (Uint32 i = 0, n = _scmoInstances.size();i < n; i++)
                           {
                               _appendInstanceElement(out, _scmoInstances[i]);
                           }
                       }
                       else
                       {
                     SCMOXmlWriter::appendValueSCMOInstanceWithPathElements(                     SCMOXmlWriter::appendValueSCMOInstanceWithPathElements(
                         out,_scmoInstances, _propertyList);                         out,_scmoInstances, _propertyList);
                 }                 }
                   }
                 else                 else
                 {                 {
                     // KS_TODO why is this one named element rather than                     // KS_TODO why is this one named element rather than
Line 2210 
Line 2225 
     _size = 0;     _size = 0;
 } }
  
 //// KS_TODO Remove. Diagnostic Displays below before commit to CVS  // The following are debugging support only
 void CIMResponseData::traceResponseData()  //// #ifdef PEGASUS_DEBUG
   void CIMResponseData::traceResponseData() const
 { {
     PEG_TRACE((TRC_XML, Tracer::LEVEL3,     PEG_TRACE((TRC_XML, Tracer::LEVEL3,
         "%s", (const char*)toStringTraceResponseData().getCString() ));         "%s", (const char*)toStringTraceResponseData().getCString() ));
 } }
 String CIMResponseData::toStringTraceResponseData()  
   String CIMResponseData::toStringTraceResponseData() const
 { {
     int rtnSize;     int rtnSize;
     char *p;     char *p;
Line 2259 
Line 2276 
     free(p);     free(p);
     return(rtnStr);     return(rtnStr);
 } }
   //// #endif
  
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.5.2.27  
changed lines
  Added in v.1.5.2.28

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2