Mercurial > hg > orthanc-stone
comparison Framework/Loaders/LoaderCache.h @ 1413:cde379b9d1d2 loader-cache-refactoring
LoaderCache is now extensible + factored the uuid normalizing
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 04 May 2020 18:26:35 +0200 |
parents | f4a06ad1580b |
children | 998697c5ec74 |
comparison
equal
deleted
inserted
replaced
1411:08fd094f9582 | 1413:cde379b9d1d2 |
---|---|
39 namespace OrthancStone | 39 namespace OrthancStone |
40 { | 40 { |
41 class LoaderCache | 41 class LoaderCache |
42 { | 42 { |
43 public: | 43 public: |
44 | |
45 virtual ~LoaderCache() {} | |
46 | |
44 LoaderCache(OrthancStone::ILoadersContext& loadersContext); | 47 LoaderCache(OrthancStone::ILoadersContext& loadersContext); |
45 | 48 |
46 boost::shared_ptr<OrthancSeriesVolumeProgressiveLoader> | 49 boost::shared_ptr<OrthancSeriesVolumeProgressiveLoader> |
47 GetSeriesVolumeProgressiveLoader (std::string seriesUuid); | 50 GetSeriesVolumeProgressiveLoader (std::string seriesUuid); |
48 | 51 |
57 std::string instanceUuid, | 60 std::string instanceUuid, |
58 const std::vector<std::string>& initiallyVisibleStructures); | 61 const std::vector<std::string>& initiallyVisibleStructures); |
59 | 62 |
60 void ClearCache(); | 63 void ClearCache(); |
61 | 64 |
62 private: | 65 /** |
66 Service method static and exposed for unit tests. | |
67 */ | |
68 static void NormalizeUuid(std::string& uuid); | |
69 | |
70 protected: | |
63 | 71 |
64 void DebugDisplayObjRefCounts(); | 72 void DebugDisplayObjRefCounts(); |
65 | 73 |
66 OrthancStone::ILoadersContext& loadersContext_; | 74 OrthancStone::ILoadersContext& loadersContext_; |
67 | 75 |