Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi.h @ 62:a70bb32802ae orthanc-renaming
renaming Server
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 16 Sep 2012 09:33:19 +0200 |
parents | 6da7fc87efaa |
children | fe180eae201d |
comparison
equal
deleted
inserted
replaced
61:d1c511efd6b1 | 62:a70bb32802ae |
---|---|
1 /** | 1 /** |
2 * Palanthir - A Lightweight, RESTful DICOM Store | 2 * Orthanc - 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 Palanthir | 30 namespace Orthanc |
31 { | 31 { |
32 class PalanthirRestApi : public HttpHandler | 32 class OrthancRestApi : 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 PalanthirRestApi(ServerIndex& index, | 71 OrthancRestApi(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; |