Mercurial > hg > orthanc
diff OrthancFramework/Sources/RestApi/RestApiHierarchy.h @ 4300:b30a8de92ad9
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 19:33:18 +0100 |
parents | bf7b9edf6b81 |
children | 44b53a2c0a13 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/RestApi/RestApiHierarchy.h Thu Nov 05 18:24:50 2020 +0100 +++ b/OrthancFramework/Sources/RestApi/RestApiHierarchy.h Thu Nov 05 19:33:18 2020 +0100 @@ -47,25 +47,13 @@ bool HasHandler(HttpMethod method) const; - void Register(RestApiGetCall::Handler handler) - { - getHandler_ = handler; - } + void Register(RestApiGetCall::Handler handler); - void Register(RestApiPutCall::Handler handler) - { - putHandler_ = handler; - } + void Register(RestApiPutCall::Handler handler); - void Register(RestApiPostCall::Handler handler) - { - postHandler_ = handler; - } + void Register(RestApiPostCall::Handler handler); - void Register(RestApiDeleteCall::Handler handler) - { - deleteHandler_ = handler; - } + void Register(RestApiDeleteCall::Handler handler); bool IsEmpty() const; @@ -82,9 +70,7 @@ class IVisitor : public boost::noncopyable { public: - virtual ~IVisitor() - { - } + virtual ~IVisitor(); virtual bool Visit(const Resource& resource, const UriComponents& uri, @@ -140,10 +126,7 @@ void CreateSiteMap(Json::Value& target) const; bool GetDirectory(Json::Value& result, - const UriComponents& uri) - { - return GetDirectory(result, uri, 0); - } + const UriComponents& uri); bool LookupResource(const UriComponents& uri, IVisitor& visitor);