Mercurial > hg > orthanc
annotate OrthancFramework/Sources/HttpServer/WebDavStorage.h @ 5639:b6a6179a2a69
TimezoneOffsetFromUTC is now ignored for C-Find matching
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Fri, 24 May 2024 15:11:28 +0200 |
parents | 48b8dae6dc77 |
children | f7adfb22e20e |
rev | line source |
---|---|
4230 | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
5485
48b8dae6dc77
upgrade to year 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5185
diff
changeset
|
5 * Copyright (C) 2017-2024 Osimis S.A., Belgium |
48b8dae6dc77
upgrade to year 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5185
diff
changeset
|
6 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
4230 | 7 * |
8 * This program is free software: you can redistribute it and/or | |
9 * modify it under the terms of the GNU Lesser General Public License | |
10 * as published by the Free Software Foundation, either version 3 of | |
11 * the License, or (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, but | |
14 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 * Lesser General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU Lesser General Public | |
19 * License along with this program. If not, see | |
20 * <http://www.gnu.org/licenses/>. | |
21 **/ | |
22 | |
23 | |
24 | |
25 #pragma once | |
26 | |
27 #include "IWebDavBucket.h" | |
28 | |
29 #include <boost/thread/recursive_mutex.hpp> | |
30 | |
31 namespace Orthanc | |
32 { | |
33 class WebDavStorage : public IWebDavBucket | |
34 { | |
35 private: | |
36 class StorageFile; | |
37 class StorageFolder; | |
38 | |
39 StorageFolder* LookupParentFolder(const std::vector<std::string>& path); | |
40 | |
41 boost::shared_ptr<StorageFolder> root_; // PImpl | |
42 boost::recursive_mutex mutex_; | |
43 bool isMemory_; | |
44 | |
45 public: | |
4253 | 46 explicit WebDavStorage(bool isMemory); |
4230 | 47 |
48 virtual bool IsExistingFolder(const std::vector<std::string>& path) ORTHANC_OVERRIDE; | |
49 | |
50 virtual bool ListCollection(Collection& collection, | |
51 const std::vector<std::string>& path) ORTHANC_OVERRIDE; | |
52 | |
53 virtual bool GetFileContent(MimeType& mime, | |
54 std::string& content, | |
55 boost::posix_time::ptime& modificationTime, | |
56 const std::vector<std::string>& path) ORTHANC_OVERRIDE; | |
57 | |
58 virtual bool StoreFile(const std::string& content, | |
59 const std::vector<std::string>& path) ORTHANC_OVERRIDE; | |
60 | |
61 virtual bool CreateFolder(const std::vector<std::string>& path) ORTHANC_OVERRIDE; | |
62 | |
4232
688435755466
added DELETE in WebDAV, first working virtual filesystem
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4230
diff
changeset
|
63 virtual bool DeleteItem(const std::vector<std::string>& path) ORTHANC_OVERRIDE; |
688435755466
added DELETE in WebDAV, first working virtual filesystem
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4230
diff
changeset
|
64 |
4230 | 65 virtual void Start() ORTHANC_OVERRIDE |
66 { | |
67 } | |
68 | |
69 virtual void Stop() ORTHANC_OVERRIDE | |
70 { | |
71 } | |
4239
c8754c4c1862
upload DICOM using WebDAV
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4232
diff
changeset
|
72 |
c8754c4c1862
upload DICOM using WebDAV
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4232
diff
changeset
|
73 void RemoveEmptyFolders(); |
4230 | 74 }; |
75 } |