comparison OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp @ 4288:5b254bd435d3

fix for VS2008
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 04 Nov 2020 18:26:44 +0100
parents 544120b34c09
children 91554aecff9a
comparison
equal deleted inserted replaced
4287:5a3374b6e707 4288:5b254bd435d3
77 << DIMSE_dumpMessage(str, *response, DIMSE_INCOMING); 77 << DIMSE_dumpMessage(str, *response, DIMSE_INCOMING);
78 } 78 }
79 79
80 if (responseIdentifiers != NULL) 80 if (responseIdentifiers != NULL)
81 { 81 {
82 std::stringstream s; // This is necessary for VS2008 82 std::stringstream s; // DcmObject::PrintHelper cannot be used with VS2008
83 s << DcmObject::PrintHelper(*responseIdentifiers); 83 responseIdentifiers->print(s);
84 CLOG(TRACE, DICOM) << "Response Identifiers " << responseCount << ":" << std::endl << s.str(); 84 CLOG(TRACE, DICOM) << "Response Identifiers " << responseCount << ":" << std::endl << s.str();
85 } 85 }
86 86
87 if (responseIdentifiers != NULL) 87 if (responseIdentifiers != NULL)
88 { 88 {
281 #if DCMTK_VERSION_NUMBER >= 364 281 #if DCMTK_VERSION_NUMBER >= 364
282 int responseCount; 282 int responseCount;
283 #endif 283 #endif
284 284
285 { 285 {
286 std::stringstream s; // This is necessary for VS2008 286 std::stringstream s; // DcmObject::PrintHelper cannot be used with VS2008
287 s << DcmObject::PrintHelper(*dataset); 287 dataset->print(s);
288 288
289 OFString str; 289 OFString str;
290 CLOG(TRACE, DICOM) << "Sending Find Request:" << std::endl 290 CLOG(TRACE, DICOM) << "Sending Find Request:" << std::endl
291 << DIMSE_dumpMessage(str, request, DIMSE_OUTGOING, NULL, presID) << std::endl 291 << DIMSE_dumpMessage(str, request, DIMSE_OUTGOING, NULL, presID) << std::endl
292 << s.str(); 292 << s.str();