comparison OrthancServer/OrthancRestApi/OrthancRestApi.h @ 1103:bec1eccf976c

Hot restart of Orthanc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 07 Aug 2014 11:33:46 +0200
parents 160dfe770618
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
1102:ce6386b37afd 1103:bec1eccf976c
45 public: 45 public:
46 typedef std::set<std::string> SetOfStrings; 46 typedef std::set<std::string> SetOfStrings;
47 47
48 private: 48 private:
49 ServerContext& context_; 49 ServerContext& context_;
50 bool resetRequestReceived_;
50 51
51 void RegisterSystem(); 52 void RegisterSystem();
52 53
53 void RegisterChanges(); 54 void RegisterChanges();
54 55
58 59
59 void RegisterAnonymizeModify(); 60 void RegisterAnonymizeModify();
60 61
61 void RegisterArchive(); 62 void RegisterArchive();
62 63
64 static void ResetOrthanc(RestApiPostCall& call);
65
63 public: 66 public:
64 OrthancRestApi(ServerContext& context); 67 OrthancRestApi(ServerContext& context);
68
69 const bool& ResetRequestReceivedFlag() const
70 {
71 return resetRequestReceived_;
72 }
65 73
66 static OrthancRestApi& GetApi(RestApiCall& call) 74 static OrthancRestApi& GetApi(RestApiCall& call)
67 { 75 {
68 return dynamic_cast<OrthancRestApi&>(call.GetContext()); 76 return dynamic_cast<OrthancRestApi&>(call.GetContext());
69 } 77 }