comparison OrthancServer/ServerIndex.h @ 206:4453a010d0db

flush to disk thread
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Nov 2012 12:03:18 +0100
parents 7f4acf490179
children f276b175dcaf
comparison
equal deleted inserted replaced
205:6ab754744446 206:4453a010d0db
52 52
53 class ServerIndex 53 class ServerIndex
54 { 54 {
55 private: 55 private:
56 boost::mutex mutex_; 56 boost::mutex mutex_;
57 boost::thread flushThread_;
57 58
58 std::auto_ptr<Internals::ServerIndexListener> listener_; 59 std::auto_ptr<Internals::ServerIndexListener> listener_;
59 std::auto_ptr<DatabaseWrapper> db_; 60 std::auto_ptr<DatabaseWrapper> db_;
60 61
61 void MainDicomTagsToJson(Json::Value& result, 62 void MainDicomTagsToJson(Json::Value& result,
72 SeriesStatus GetSeriesStatus(int id); 73 SeriesStatus GetSeriesStatus(int id);
73 74
74 public: 75 public:
75 ServerIndex(FileStorage& fileStorage, 76 ServerIndex(FileStorage& fileStorage,
76 const std::string& dbPath); 77 const std::string& dbPath);
78
79 ~ServerIndex();
77 80
78 StoreStatus Store(const DicomMap& dicomSummary, 81 StoreStatus Store(const DicomMap& dicomSummary,
79 const std::string& fileUuid, 82 const std::string& fileUuid,
80 uint64_t uncompressedFileSize, 83 uint64_t uncompressedFileSize,
81 const std::string& jsonUuid, 84 const std::string& jsonUuid,