comparison UnitTestsSources/RestApiTests.cpp @ 2924:22524fd06225

macros ORTHANC_OVERRIDE and ORTHANC_FINAL
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 09 Nov 2018 09:06:46 +0100
parents 0e1b79bc4a2d
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
2923:87366b8aed4f 2924:22524fd06225
284 { 284 {
285 public: 285 public:
286 virtual bool Visit(const RestApiHierarchy::Resource& resource, 286 virtual bool Visit(const RestApiHierarchy::Resource& resource,
287 const UriComponents& uri, 287 const UriComponents& uri,
288 const IHttpHandler::Arguments& components, 288 const IHttpHandler::Arguments& components,
289 const UriComponents& trailing) 289 const UriComponents& trailing) ORTHANC_OVERRIDE
290 { 290 {
291 return resource.Handle(*(RestApiGetCall*) NULL); 291 return resource.Handle(*(RestApiGetCall*) NULL);
292 } 292 }
293 }; 293 };
294 } 294 }
379 { 379 {
380 return subtype_; 380 return subtype_;
381 } 381 }
382 382
383 virtual void Handle(const std::string& type, 383 virtual void Handle(const std::string& type,
384 const std::string& subtype) 384 const std::string& subtype) ORTHANC_OVERRIDE
385 { 385 {
386 type_ = type; 386 type_ = type;
387 subtype_ = subtype; 387 subtype_ = subtype;
388 } 388 }
389 }; 389 };