Mercurial > hg > orthanc
comparison UnitTestsSources/FromDcmtkTests.cpp @ 3885:e23026566536 transcoding
removed unused functions
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 05 May 2020 14:52:47 +0200 |
parents | 83061cdc7703 |
children | b808958dff2a |
comparison
equal
deleted
inserted
replaced
3884:83061cdc7703 | 3885:e23026566536 |
---|---|
2225 TEST(Toto, DISABLED_Transcode3) | 2225 TEST(Toto, DISABLED_Transcode3) |
2226 { | 2226 { |
2227 DicomAssociationParameters p; | 2227 DicomAssociationParameters p; |
2228 p.SetRemotePort(2000); | 2228 p.SetRemotePort(2000); |
2229 | 2229 |
2230 DicomStoreUserConnection scu(p); | |
2231 scu.SetCommonClassesProposed(false); | |
2232 scu.SetRetiredBigEndianProposed(true); | |
2233 | |
2230 DcmtkTranscoder transcoder; | 2234 DcmtkTranscoder transcoder; |
2231 | 2235 |
2236 for (int j = 0; j < 2; j++) | |
2232 for (int i = 0; i <= DicomTransferSyntax_XML; i++) | 2237 for (int i = 0; i <= DicomTransferSyntax_XML; i++) |
2233 { | 2238 { |
2234 DicomTransferSyntax a = (DicomTransferSyntax) i; | 2239 DicomTransferSyntax a = (DicomTransferSyntax) i; |
2235 | 2240 |
2236 std::string path = ("/home/jodogne/Subversion/orthanc-tests/Database/TransferSyntaxes/" + | 2241 std::string path = ("/home/jodogne/Subversion/orthanc-tests/Database/TransferSyntaxes/" + |
2239 { | 2244 { |
2240 printf("\n======= %s\n", GetTransferSyntaxUid(a)); | 2245 printf("\n======= %s\n", GetTransferSyntaxUid(a)); |
2241 | 2246 |
2242 std::string source; | 2247 std::string source; |
2243 Orthanc::SystemToolbox::ReadFile(source, path); | 2248 Orthanc::SystemToolbox::ReadFile(source, path); |
2244 | |
2245 DicomStoreUserConnection scu(p); | |
2246 scu.SetCommonClassesProposed(false); | |
2247 scu.SetRetiredBigEndianProposed(true); | |
2248 | 2249 |
2249 std::string c, i; | 2250 std::string c, i; |
2250 try | 2251 try |
2251 { | 2252 { |
2252 IDicomTranscoder::Store(c, i, scu, transcoder, source.c_str(), source.size()); | 2253 IDicomTranscoder::Store(c, i, scu, transcoder, source.c_str(), source.size()); |