Mercurial > hg > orthanc
comparison Resources/Samples/Tools/RecoverCompressedFile.cpp @ 2140:aa4b8895cd23
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 16:12:47 +0100 |
parents | 235319b3ddf0 |
children | fd5875662670 |
comparison
equal
deleted
inserted
replaced
2139:764c9157301b | 2140:aa4b8895cd23 |
---|---|
38 { | 38 { |
39 fprintf(stderr, "Reading the file into memory...\n"); | 39 fprintf(stderr, "Reading the file into memory...\n"); |
40 fflush(stderr); | 40 fflush(stderr); |
41 | 41 |
42 std::string content; | 42 std::string content; |
43 Orthanc::Toolbox::ReadFile(content, argv[1]); | 43 Orthanc::SystemToolbox::ReadFile(content, argv[1]); |
44 | 44 |
45 fprintf(stderr, "Decompressing the content of the file...\n"); | 45 fprintf(stderr, "Decompressing the content of the file...\n"); |
46 fflush(stderr); | 46 fflush(stderr); |
47 | 47 |
48 Orthanc::ZlibCompressor compressor; | 48 Orthanc::ZlibCompressor compressor; |
54 fprintf(stderr, "Writing the uncompressed data...\n"); | 54 fprintf(stderr, "Writing the uncompressed data...\n"); |
55 fflush(stderr); | 55 fflush(stderr); |
56 | 56 |
57 if (argc == 3) | 57 if (argc == 3) |
58 { | 58 { |
59 Orthanc::Toolbox::WriteFile(uncompressed, argv[2]); | 59 Orthanc::SystemToolbox::WriteFile(uncompressed, argv[2]); |
60 } | 60 } |
61 else | 61 else |
62 { | 62 { |
63 if (uncompressed.size() > 0) | 63 if (uncompressed.size() > 0) |
64 { | 64 { |