Mercurial > hg > orthanc
diff Core/RestApi/RestApi.h @ 237:16a4ac70bd8a
last change and export
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 30 Nov 2012 15:45:15 +0100 |
parents | 8098448bd827 |
children | 4031f73fe0e4 |
line wrap: on
line diff
--- a/Core/RestApi/RestApi.h Fri Nov 30 15:09:16 2012 +0100 +++ b/Core/RestApi/RestApi.h Fri Nov 30 15:45:15 2012 +0100 @@ -99,6 +99,11 @@ { return HttpHandler::GetArgument(*getArguments_, name, defaultValue); } + + bool HasArgument(const std::string& name) const + { + return getArguments_->find(name) != getArguments_->end(); + } }; class PutCall : public SharedCall