comparison OrthancServer/IDatabaseWrapper.h @ 1286:b4acdb37e43b

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Feb 2015 16:51:19 +0100
parents ee43f0d611a8
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
1285:5730f374e4e6 1286:b4acdb37e43b
54 const FileInfo& attachment) = 0; 54 const FileInfo& attachment) = 0;
55 55
56 virtual void AttachChild(int64_t parent, 56 virtual void AttachChild(int64_t parent,
57 int64_t child) = 0; 57 int64_t child) = 0;
58 58
59 virtual void ClearTable(const std::string& tableName) = 0; 59 virtual void ClearChanges() = 0;
60
61 virtual void ClearExportedResources() = 0;
60 62
61 virtual int64_t CreateResource(const std::string& publicId, 63 virtual int64_t CreateResource(const std::string& publicId,
62 ResourceType type) = 0; 64 ResourceType type) = 0;
63 65
64 virtual void DeleteAttachment(int64_t id, 66 virtual void DeleteAttachment(int64_t id,
157 int64_t patientIdToAvoid) = 0; 159 int64_t patientIdToAvoid) = 0;
158 160
159 virtual void SetGlobalProperty(GlobalProperty property, 161 virtual void SetGlobalProperty(GlobalProperty property,
160 const std::string& value) = 0; 162 const std::string& value) = 0;
161 163
162 virtual void SetMainDicomTags(int64_t id, 164 virtual void SetMainDicomTag(int64_t id,
163 const DicomMap& tags) = 0; 165 const DicomTag& tag,
166 const std::string& value) = 0;
164 167
165 virtual void SetMetadata(int64_t id, 168 virtual void SetMetadata(int64_t id,
166 MetadataType type, 169 MetadataType type,
167 const std::string& value) = 0; 170 const std::string& value) = 0;
168 171
170 bool isProtected) = 0; 173 bool isProtected) = 0;
171 174
172 virtual SQLite::ITransaction* StartTransaction() = 0; 175 virtual SQLite::ITransaction* StartTransaction() = 0;
173 176
174 virtual void SetListener(IServerIndexListener& listener) = 0; 177 virtual void SetListener(IServerIndexListener& listener) = 0;
175
176
177 // For unit tests only!
178 virtual void GetChildren(std::list<std::string>& childrenPublicIds,
179 int64_t id) = 0;
180
181 // For unit tests only!
182 virtual int64_t GetTableRecordCount(const std::string& table) = 0;
183
184 // For unit tests only!
185 virtual bool GetParentPublicId(std::string& result,
186 int64_t id) = 0;
187
188 }; 178 };
189 } 179 }