comparison PalanthirServer/PalanthirRestApi.h @ 50:a15e90e5d6fc

rename in code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Sep 2012 15:50:12 +0200
parents 491a97842e31
children
comparison
equal deleted inserted replaced
49:e1a3ae0dadf3 50:a15e90e5d6fc
1 /** 1 /**
2 * Palantir - A Lightweight, RESTful DICOM Store 2 * Palanthir - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege, 3 * Copyright (C) 2012 Medical Physics Department, CHU of Liege,
4 * Belgium 4 * Belgium
5 * 5 *
6 * This program is free software: you can redistribute it and/or 6 * This program is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as 7 * modify it under the terms of the GNU General Public License as
25 #include "DicomProtocol/DicomUserConnection.h" 25 #include "DicomProtocol/DicomUserConnection.h"
26 26
27 #include <set> 27 #include <set>
28 28
29 29
30 namespace Palantir 30 namespace Palanthir
31 { 31 {
32 class PalantirRestApi : public HttpHandler 32 class PalanthirRestApi : public HttpHandler
33 { 33 {
34 private: 34 private:
35 typedef std::set<std::string> Modalities; 35 typedef std::set<std::string> Modalities;
36 36
37 ServerIndex& index_; 37 ServerIndex& index_;
66 bool DicomStore(Json::Value& result, 66 bool DicomStore(Json::Value& result,
67 DicomUserConnection& c, 67 DicomUserConnection& c,
68 const std::string& postData); 68 const std::string& postData);
69 69
70 public: 70 public:
71 PalantirRestApi(ServerIndex& index, 71 PalanthirRestApi(ServerIndex& index,
72 const std::string& path); 72 const std::string& path);
73 73
74 virtual bool IsServedUri(const UriComponents& uri) 74 virtual bool IsServedUri(const UriComponents& uri)
75 { 75 {
76 return true; 76 return true;
77 } 77 }