comparison OrthancServer/DatabaseWrapperBase.h @ 1709:2ad22b2970a2 db-changes

SearchableStudies
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Oct 2015 17:48:30 +0200
parents 4c5a85c3ff43
children 5ebd6cbb3da8
comparison
equal deleted inserted replaced
1708:275780da54ae 1709:2ad22b2970a2
40 #include "../OrthancServer/ExportedResource.h" 40 #include "../OrthancServer/ExportedResource.h"
41 #include "../OrthancServer/ServerIndexChange.h" 41 #include "../OrthancServer/ServerIndexChange.h"
42 #include "ServerEnumerations.h" 42 #include "ServerEnumerations.h"
43 43
44 #include <list> 44 #include <list>
45 #include <boost/noncopyable.hpp>
45 46
46 47
47 namespace Orthanc 48 namespace Orthanc
48 { 49 {
49 /** 50 /**
50 * This class is shared between the Orthanc core and the sample 51 * This class is shared between the Orthanc core and the sample
51 * database plugin whose code is in 52 * database plugin whose code is in
52 * "../Plugins/Samples/DatabasePlugin". 53 * "../Plugins/Samples/DatabasePlugin".
53 **/ 54 **/
54 class DatabaseWrapperBase 55 class DatabaseWrapperBase : public boost::noncopyable
55 { 56 {
56 private: 57 private:
57 SQLite::Connection& db_; 58 SQLite::Connection& db_;
58 59
59 ErrorCode GetChangesInternal(std::list<ServerIndexChange>& target, 60 ErrorCode GetChangesInternal(std::list<ServerIndexChange>& target,
190 const DicomTag& tag, 191 const DicomTag& tag,
191 const std::string& value); 192 const std::string& value);
192 193
193 void LookupIdentifier(std::list<int64_t>& target, 194 void LookupIdentifier(std::list<int64_t>& target,
194 const std::string& value); 195 const std::string& value);
196
197 void StoreStudyModule(int64_t id,
198 const DicomMap& module);
195 }; 199 };
196 } 200 }
197 201