comparison OrthancServer/DatabaseWrapperBase.h @ 1711:5ebd6cbb3da8 db-changes

Backed out changeset 2ad22b2970a2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Oct 2015 17:36:07 +0200
parents 2ad22b2970a2
children 4db9200c7f46
comparison
equal deleted inserted replaced
1709:2ad22b2970a2 1711:5ebd6cbb3da8
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>
46 45
47 46
48 namespace Orthanc 47 namespace Orthanc
49 { 48 {
50 /** 49 /**
51 * This class is shared between the Orthanc core and the sample 50 * This class is shared between the Orthanc core and the sample
52 * database plugin whose code is in 51 * database plugin whose code is in
53 * "../Plugins/Samples/DatabasePlugin". 52 * "../Plugins/Samples/DatabasePlugin".
54 **/ 53 **/
55 class DatabaseWrapperBase : public boost::noncopyable 54 class DatabaseWrapperBase
56 { 55 {
57 private: 56 private:
58 SQLite::Connection& db_; 57 SQLite::Connection& db_;
59 58
60 ErrorCode GetChangesInternal(std::list<ServerIndexChange>& target, 59 ErrorCode GetChangesInternal(std::list<ServerIndexChange>& target,
191 const DicomTag& tag, 190 const DicomTag& tag,
192 const std::string& value); 191 const std::string& value);
193 192
194 void LookupIdentifier(std::list<int64_t>& target, 193 void LookupIdentifier(std::list<int64_t>& target,
195 const std::string& value); 194 const std::string& value);
196
197 void StoreStudyModule(int64_t id,
198 const DicomMap& module);
199 }; 195 };
200 } 196 }
201 197