Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.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 | f5d44e30b429 |
comparison
equal
deleted
inserted
replaced
4287:5a3374b6e707 | 4288:5b254bd435d3 |
---|---|
746 | 746 |
747 // if the command which was received has extra status | 747 // if the command which was received has extra status |
748 // detail information, dump this information | 748 // detail information, dump this information |
749 if (statusDetail != NULL) | 749 if (statusDetail != NULL) |
750 { | 750 { |
751 std::stringstream s; // This is necessary for VS2008 | 751 std::stringstream s; // DcmObject::PrintHelper cannot be used with VS2008 |
752 s << DcmObject::PrintHelper(*statusDetail); | 752 statusDetail->print(s); |
753 CLOG(TRACE, DICOM) << "Status Detail:" << std::endl << s.str(); | 753 CLOG(TRACE, DICOM) << "Status Detail:" << std::endl << s.str(); |
754 | 754 |
755 delete statusDetail; | 755 delete statusDetail; |
756 } | 756 } |
757 | 757 |
1141 std::unique_ptr<DcmDataset> dataset( | 1141 std::unique_ptr<DcmDataset> dataset( |
1142 ReadDataset(assoc_, "Cannot read the dataset in N-ACTION SCP", associationTimeout_)); | 1142 ReadDataset(assoc_, "Cannot read the dataset in N-ACTION SCP", associationTimeout_)); |
1143 assert(dataset.get() != NULL); | 1143 assert(dataset.get() != NULL); |
1144 | 1144 |
1145 { | 1145 { |
1146 std::stringstream s; // This is necessary for VS2008 | 1146 std::stringstream s; // DcmObject::PrintHelper cannot be used with VS2008 |
1147 s << DcmObject::PrintHelper(*dataset); | 1147 dataset->print(s); |
1148 CLOG(TRACE, DICOM) << "Received Storage Commitment Request:" << std::endl << s.str(); | 1148 CLOG(TRACE, DICOM) << "Received Storage Commitment Request:" << std::endl << s.str(); |
1149 } | 1149 } |
1150 | 1150 |
1151 std::string transactionUid = ReadString(*dataset, DCM_TransactionUID); | 1151 std::string transactionUid = ReadString(*dataset, DCM_TransactionUID); |
1152 | 1152 |
1277 std::unique_ptr<DcmDataset> dataset( | 1277 std::unique_ptr<DcmDataset> dataset( |
1278 ReadDataset(assoc_, "Cannot read the dataset in N-EVENT-REPORT SCP", associationTimeout_)); | 1278 ReadDataset(assoc_, "Cannot read the dataset in N-EVENT-REPORT SCP", associationTimeout_)); |
1279 assert(dataset.get() != NULL); | 1279 assert(dataset.get() != NULL); |
1280 | 1280 |
1281 { | 1281 { |
1282 std::stringstream s; // This is necessary for VS2008 | 1282 std::stringstream s; // DcmObject::PrintHelper cannot be used with VS2008 |
1283 s << DcmObject::PrintHelper(*dataset); | 1283 dataset->print(s); |
1284 CLOG(TRACE, DICOM) << "Received Storage Commitment Report:" << std::endl << s.str(); | 1284 CLOG(TRACE, DICOM) << "Received Storage Commitment Report:" << std::endl << s.str(); |
1285 } | 1285 } |
1286 | 1286 |
1287 std::string transactionUid = ReadString(*dataset, DCM_TransactionUID); | 1287 std::string transactionUid = ReadString(*dataset, DCM_TransactionUID); |
1288 | 1288 |