Mercurial > hg > orthanc
diff OrthancFramework/Sources/RestApi/RestApiHierarchy.cpp @ 4300:b30a8de92ad9
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 19:33:18 +0100 |
parents | 4d42408da117 |
children | 44b53a2c0a13 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/RestApi/RestApiHierarchy.cpp Thu Nov 05 18:24:50 2020 +0100 +++ b/OrthancFramework/Sources/RestApi/RestApiHierarchy.cpp Thu Nov 05 19:33:18 2020 +0100 @@ -61,6 +61,27 @@ } + void RestApiHierarchy::Resource::Register(RestApiGetCall::Handler handler) + { + getHandler_ = handler; + } + + void RestApiHierarchy::Resource::Register(RestApiPutCall::Handler handler) + { + putHandler_ = handler; + } + + void RestApiHierarchy::Resource::Register(RestApiPostCall::Handler handler) + { + postHandler_ = handler; + } + + void RestApiHierarchy::Resource::Register(RestApiDeleteCall::Handler handler) + { + deleteHandler_ = handler; + } + + bool RestApiHierarchy::Resource::IsEmpty() const { return (getHandler_ == NULL && @@ -146,6 +167,10 @@ } + RestApiHierarchy::IVisitor::~IVisitor() + { + } + void RestApiHierarchy::DeleteChildren(Children& children) { @@ -391,6 +416,11 @@ } } + bool RestApiHierarchy::GetDirectory(Json::Value &result, const UriComponents &uri) + { + return GetDirectory(result, uri, 0); + } + bool RestApiHierarchy::LookupResource(const UriComponents& uri, IVisitor& visitor) @@ -463,4 +493,5 @@ } } } + }