comparison OrthancFramework/Sources/HttpServer/IWebDavBucket.h @ 4246:6c3721ff284c

simplification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Oct 2020 10:39:47 +0200
parents a38376b80cd1
children f047e2734655
comparison
equal deleted inserted replaced
4245:c70df925151e 4246:6c3721ff284c
82 { 82 {
83 return modificationTime_; 83 return modificationTime_;
84 } 84 }
85 85
86 virtual void Format(pugi::xml_node& node, 86 virtual void Format(pugi::xml_node& node,
87 const std::string& parentPath, 87 const std::string& parentPath) const = 0;
88 bool includeDisplayName) const;
89 }; 88 };
90 89
91 90
92 class File : public Resource 91 class File : public Resource
93 { 92 {
119 } 118 }
120 119
121 void SetCreated(bool created); 120 void SetCreated(bool created);
122 121
123 virtual void Format(pugi::xml_node& node, 122 virtual void Format(pugi::xml_node& node,
124 const std::string& parentPath, 123 const std::string& parentPath) const ORTHANC_OVERRIDE;
125 bool includeDisplayName) const ORTHANC_OVERRIDE;
126 }; 124 };
127 125
128 126
129 class Folder : public Resource 127 class Folder : public Resource
130 { 128 {
133 { 131 {
134 SetNameInternal(name); 132 SetNameInternal(name);
135 } 133 }
136 134
137 virtual void Format(pugi::xml_node& node, 135 virtual void Format(pugi::xml_node& node,
138 const std::string& parentPath, 136 const std::string& parentPath) const ORTHANC_OVERRIDE;
139 bool includeDisplayName) const ORTHANC_OVERRIDE;
140 }; 137 };
141 138
142 139
143 class Collection : public boost::noncopyable 140 class Collection : public boost::noncopyable
144 { 141 {
154 } 151 }
155 152
156 void AddResource(Resource* resource); // Takes ownership 153 void AddResource(Resource* resource); // Takes ownership
157 154
158 void Format(std::string& target, 155 void Format(std::string& target,
159 const std::string& parentPath, 156 const std::string& parentPath) const;
160 bool includeDisplayName) const;
161 }; 157 };
162 158
163 159
164 virtual ~IWebDavBucket() 160 virtual ~IWebDavBucket()
165 { 161 {