Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 2062:40ffd0e8676a
generation of etag in ServeFolders
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 02 Jul 2016 15:09:03 +0200 |
parents | e12d83e9ee59 |
children | d5c29fd74ffa |
comparison
equal
deleted
inserted
replaced
2061:8856f15b3e02 | 2062:40ffd0e8676a |
---|---|
74 { | 74 { |
75 private: | 75 private: |
76 OrthancPluginContext* context_; | 76 OrthancPluginContext* context_; |
77 OrthancPluginMemoryBuffer buffer_; | 77 OrthancPluginMemoryBuffer buffer_; |
78 | 78 |
79 void Check(OrthancPluginErrorCode code); | |
80 | |
79 public: | 81 public: |
80 MemoryBuffer(OrthancPluginContext* context); | 82 MemoryBuffer(OrthancPluginContext* context); |
81 | 83 |
82 ~MemoryBuffer() | 84 ~MemoryBuffer() |
83 { | 85 { |
150 return RestApiPut(uri, body.empty() ? NULL : body.c_str(), body.size(), applyPlugins); | 152 return RestApiPut(uri, body.empty() ? NULL : body.c_str(), body.size(), applyPlugins); |
151 } | 153 } |
152 | 154 |
153 void CreateDicom(const Json::Value& tags, | 155 void CreateDicom(const Json::Value& tags, |
154 OrthancPluginCreateDicomFlags flags); | 156 OrthancPluginCreateDicomFlags flags); |
157 | |
158 void ReadFile(const std::string& path); | |
155 }; | 159 }; |
156 | 160 |
157 | 161 |
158 class OrthancString : public boost::noncopyable | 162 class OrthancString : public boost::noncopyable |
159 { | 163 { |