comparison Core/Toolbox.cpp @ 2065:272094362301

nacl
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Jul 2016 17:50:18 +0200
parents ed383e7a6753
children 27fd34970c52
comparison
equal deleted inserted replaced
2064:e92280e63d8d 2065:272094362301
1304 } 1304 }
1305 1305
1306 #endif 1306 #endif
1307 1307
1308 1308
1309 #if !defined(ORTHANC_SANDBOXED) || ORTHANC_SANDBOXED != 1
1309 void Toolbox::ExecuteSystemCommand(const std::string& command, 1310 void Toolbox::ExecuteSystemCommand(const std::string& command,
1310 const std::vector<std::string>& arguments) 1311 const std::vector<std::string>& arguments)
1311 { 1312 {
1312 // Convert the arguments as a C array 1313 // Convert the arguments as a C array
1313 std::vector<char*> args(arguments.size() + 2); 1314 std::vector<char*> args(arguments.size() + 2);
1361 #endif 1362 #endif
1362 1363
1363 throw OrthancException(ErrorCode_SystemCommand); 1364 throw OrthancException(ErrorCode_SystemCommand);
1364 } 1365 }
1365 } 1366 }
1367 #endif
1366 1368
1367 1369
1368 bool Toolbox::IsInteger(const std::string& str) 1370 bool Toolbox::IsInteger(const std::string& str)
1369 { 1371 {
1370 std::string s = StripSpaces(str); 1372 std::string s = StripSpaces(str);