comparison Core/Toolbox.h @ 2017:08ce34cfacad

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 13 Jun 2016 15:49:10 +0200
parents e2dd40abce72
children 35ccba7adae9
comparison
equal deleted inserted replaced
2016:0ae26237569a 2017:08ce34cfacad
45 45
46 class NullType 46 class NullType
47 { 47 {
48 }; 48 };
49 49
50 enum ServerBarrierEvent
51 {
52 ServerBarrierEvent_Stop,
53 ServerBarrierEvent_Reload // SIGHUP signal: reload configuration file
54 };
55
56 namespace Toolbox 50 namespace Toolbox
57 { 51 {
58 ServerBarrierEvent ServerBarrier(const bool& stopFlag); 52 ServerBarrierEvent ServerBarrier(const bool& stopFlag);
59 53
60 ServerBarrierEvent ServerBarrier(); 54 ServerBarrierEvent ServerBarrier();
200 const std::string& prefix); 194 const std::string& prefix);
201 195
202 int GetProcessId(); 196 int GetProcessId();
203 197
204 bool IsRegularFile(const std::string& path); 198 bool IsRegularFile(const std::string& path);
199
200 FILE* OpenFile(const std::string& path,
201 FileMode mode);
205 } 202 }
206 } 203 }