Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestApi.h Thu Aug 07 10:51:35 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestApi.h Thu Aug 07 11:33:46 2014 +0200 @@ -47,6 +47,7 @@ private: ServerContext& context_; + bool resetRequestReceived_; void RegisterSystem(); @@ -60,9 +61,16 @@ void RegisterArchive(); + static void ResetOrthanc(RestApiPostCall& call); + public: OrthancRestApi(ServerContext& context); + const bool& ResetRequestReceivedFlag() const + { + return resetRequestReceived_; + } + static OrthancRestApi& GetApi(RestApiCall& call) { return dynamic_cast<OrthancRestApi&>(call.GetContext());