Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.h @ 226:8a26a8e85edf
refactoring to read files
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 30 Nov 2012 09:45:29 +0100 |
parents | 4eb0c7ce86c9 |
children | 8098448bd827 |
comparison
equal
deleted
inserted
replaced
225:03aa59ecf6d8 | 226:8a26a8e85edf |
---|---|
34 | 34 |
35 #include <boost/thread.hpp> | 35 #include <boost/thread.hpp> |
36 #include <boost/noncopyable.hpp> | 36 #include <boost/noncopyable.hpp> |
37 #include "../Core/SQLite/Connection.h" | 37 #include "../Core/SQLite/Connection.h" |
38 #include "../Core/DicomFormat/DicomMap.h" | 38 #include "../Core/DicomFormat/DicomMap.h" |
39 #include "../Core/FileStorage.h" | |
40 #include "../Core/DicomFormat/DicomInstanceHasher.h" | 39 #include "../Core/DicomFormat/DicomInstanceHasher.h" |
41 #include "ServerEnumerations.h" | 40 #include "ServerEnumerations.h" |
42 | 41 |
43 #include "DatabaseWrapper.h" | 42 #include "DatabaseWrapper.h" |
44 | 43 |
45 | 44 |
46 namespace Orthanc | 45 namespace Orthanc |
47 { | 46 { |
47 class ServerContext; | |
48 | |
48 namespace Internals | 49 namespace Internals |
49 { | 50 { |
50 class ServerIndexListener; | 51 class ServerIndexListener; |
51 } | 52 } |
52 | 53 |
64 int64_t resourceId); | 65 int64_t resourceId); |
65 | 66 |
66 SeriesStatus GetSeriesStatus(int id); | 67 SeriesStatus GetSeriesStatus(int id); |
67 | 68 |
68 public: | 69 public: |
69 ServerIndex(FileStorage& fileStorage, | 70 ServerIndex(ServerContext& context, |
70 const std::string& dbPath); | 71 const std::string& dbPath); |
71 | 72 |
72 ~ServerIndex(); | 73 ~ServerIndex(); |
73 | 74 |
74 StoreStatus Store(const DicomMap& dicomSummary, | 75 StoreStatus Store(const DicomMap& dicomSummary, |