comparison OrthancServer/ServerIndex.h @ 186:f68c039b0571

preparing refactoring of ServerIndex
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 12 Nov 2012 15:29:07 +0100
parents baada606da3c
children 8e673a65564d
comparison
equal deleted inserted replaced
185:5185ae1d9af5 186:f68c039b0571
37 #include "../Core/DicomFormat/DicomMap.h" 37 #include "../Core/DicomFormat/DicomMap.h"
38 #include "../Core/FileStorage.h" 38 #include "../Core/FileStorage.h"
39 #include "../Core/DicomFormat/DicomInstanceHasher.h" 39 #include "../Core/DicomFormat/DicomInstanceHasher.h"
40 #include "ServerEnumerations.h" 40 #include "ServerEnumerations.h"
41 41
42 #include "DatabaseWrapper.h"
43
42 44
43 namespace Orthanc 45 namespace Orthanc
44 { 46 {
45 namespace Internals 47 namespace Internals
46 { 48 {
51 class ServerIndex 53 class ServerIndex
52 { 54 {
53 private: 55 private:
54 SQLite::Connection db_; 56 SQLite::Connection db_;
55 boost::mutex mutex_; 57 boost::mutex mutex_;
58
59 std::auto_ptr<IServerIndexListener> listener2_;
60 std::auto_ptr<DatabaseWrapper> db2_;
56 61
57 // DO NOT delete the following one, SQLite::Connection will do it automatically 62 // DO NOT delete the following one, SQLite::Connection will do it automatically
58 Internals::SignalDeletedLevelFunction* deletedLevels_; 63 Internals::SignalDeletedLevelFunction* deletedLevels_;
59 64
60 void StoreMainDicomTags(const std::string& uuid, 65 void StoreMainDicomTags(const std::string& uuid,