Mercurial > hg > orthanc
diff OrthancServer/main.cpp @ 2140:aa4b8895cd23
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 16:12:47 +0100 |
parents | dd609a99d39a |
children | 5a8840920121 |
line wrap: on
line diff
--- a/OrthancServer/main.cpp Wed Nov 09 15:25:09 2016 +0100 +++ b/OrthancServer/main.cpp Wed Nov 09 16:12:47 2016 +0100 @@ -612,7 +612,7 @@ std::string path = Configuration::InterpretStringParameterAsPath(*it); LOG(WARNING) << "Installing the Lua scripts from: " << path; std::string script; - Toolbox::ReadFile(script, path); + SystemToolbox::ReadFile(script, path); LuaScripting::Locker locker(context.GetLua()); locker.GetLua().Execute(script); @@ -657,7 +657,7 @@ for (;;) { - ServerBarrierEvent event = Toolbox::ServerBarrier(restApi.LeaveBarrierFlag()); + ServerBarrierEvent event = SystemToolbox::ServerBarrier(restApi.LeaveBarrierFlag()); restart = restApi.IsResetRequestReceived(); if (!restart && @@ -1202,7 +1202,7 @@ #endif std::string target = argument.substr(9); - Toolbox::WriteFile(configurationSample, target); + SystemToolbox::WriteFile(configurationSample, target); return 0; } else @@ -1223,7 +1223,7 @@ { try { - boost::filesystem::path exe(Toolbox::GetPathToExecutable()); + boost::filesystem::path exe(SystemToolbox::GetPathToExecutable()); std::time_t creation = boost::filesystem::last_write_time(exe); boost::posix_time::ptime converted(boost::posix_time::from_time_t(creation)); version += " (" + boost::posix_time::to_iso_string(converted) + ")";