comparison OrthancServer/Scheduler/CallSystemCommand.cpp @ 2140:aa4b8895cd23

reorganization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Nov 2016 16:12:47 +0100
parents 2b1520efa282
children 5a8840920121
comparison
equal deleted inserted replaced
2139:764c9157301b 2140:aa4b8895cd23
59 try 59 try
60 { 60 {
61 std::string dicom; 61 std::string dicom;
62 context_.ReadDicom(dicom, *it); 62 context_.ReadDicom(dicom, *it);
63 63
64 Toolbox::TemporaryFile tmp; 64 TemporaryFile tmp;
65 tmp.Write(dicom); 65 tmp.Write(dicom);
66 66
67 std::vector<std::string> args = arguments_; 67 std::vector<std::string> args = arguments_;
68 args.push_back(tmp.GetPath()); 68 args.push_back(tmp.GetPath());
69 69
70 Toolbox::ExecuteSystemCommand(command_, args); 70 SystemToolbox::ExecuteSystemCommand(command_, args);
71 71
72 // Only chain with other commands if this command succeeds 72 // Only chain with other commands if this command succeeds
73 outputs.push_back(*it); 73 outputs.push_back(*it);
74 } 74 }
75 catch (OrthancException& e) 75 catch (OrthancException& e)