Mercurial > hg > orthanc
comparison Core/HttpServer/FilesystemHttpSender.h @ 217:1ac3aacd10a5
simplifications
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 29 Nov 2012 12:22:23 +0100 |
parents | de640de989b8 |
children | 7c1faef915a4 |
comparison
equal
deleted
inserted
replaced
216:e5d5d4a9a326 | 217:1ac3aacd10a5 |
---|---|
37 namespace Orthanc | 37 namespace Orthanc |
38 { | 38 { |
39 class FilesystemHttpSender : public HttpFileSender | 39 class FilesystemHttpSender : public HttpFileSender |
40 { | 40 { |
41 private: | 41 private: |
42 std::string path_; | 42 boost::filesystem::path path_; |
43 | 43 |
44 void Setup(); | 44 void Setup(); |
45 | 45 |
46 protected: | 46 protected: |
47 virtual uint64_t GetFileSize(); | 47 virtual uint64_t GetFileSize(); |
49 virtual bool SendData(HttpOutput& output); | 49 virtual bool SendData(HttpOutput& output); |
50 | 50 |
51 public: | 51 public: |
52 FilesystemHttpSender(const char* path); | 52 FilesystemHttpSender(const char* path); |
53 | 53 |
54 FilesystemHttpSender(const boost::filesystem::path& path); | |
55 | |
54 FilesystemHttpSender(const FileStorage& storage, | 56 FilesystemHttpSender(const FileStorage& storage, |
55 const std::string& uuid); | 57 const std::string& uuid); |
56 }; | 58 }; |
57 } | 59 } |