Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomNetworking/Internals/FindScp.cpp @ 4288:5b254bd435d3
fix for VS2008
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 04 Nov 2020 18:26:44 +0100 |
parents | 526bd8bad850 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4287:5a3374b6e707 | 4288:5b254bd435d3 |
---|---|
210 | 210 |
211 FindScpData& data = *reinterpret_cast<FindScpData*>(callbackData); | 211 FindScpData& data = *reinterpret_cast<FindScpData*>(callbackData); |
212 if (data.lastRequest_ == NULL) | 212 if (data.lastRequest_ == NULL) |
213 { | 213 { |
214 { | 214 { |
215 std::stringstream s; // This is necessary for VS2008 | 215 std::stringstream s; // DcmObject::PrintHelper cannot be used with VS2008 |
216 s << DcmObject::PrintHelper(*requestIdentifiers); | 216 requestIdentifiers->print(s); |
217 CLOG(TRACE, DICOM) << "Received C-FIND Request:" << std::endl << s.str(); | 217 CLOG(TRACE, DICOM) << "Received C-FIND Request:" << std::endl << s.str(); |
218 } | 218 } |
219 | 219 |
220 bool ok = false; | 220 bool ok = false; |
221 | 221 |
329 response->DimseStatus = STATUS_Pending; | 329 response->DimseStatus = STATUS_Pending; |
330 *responseIdentifiers = data.answers_.ExtractDcmDataset(responseCount - 1); | 330 *responseIdentifiers = data.answers_.ExtractDcmDataset(responseCount - 1); |
331 | 331 |
332 if (*responseIdentifiers) | 332 if (*responseIdentifiers) |
333 { | 333 { |
334 std::stringstream s; // This is necessary for VS2008 | 334 std::stringstream s; // DcmObject::PrintHelper cannot be used with VS2008 |
335 s << DcmObject::PrintHelper(**responseIdentifiers); | 335 (*responseIdentifiers)->print(s); |
336 OFString str; | 336 OFString str; |
337 CLOG(TRACE, DICOM) << "Sending C-FIND Response " | 337 CLOG(TRACE, DICOM) << "Sending C-FIND Response " |
338 << responseCount << "/" << data.answers_.GetSize() << ":" << std::endl | 338 << responseCount << "/" << data.answers_.GetSize() << ":" << std::endl |
339 << s.str(); | 339 << s.str(); |
340 } | 340 } |