comparison Plugin/ResourceHierarchyCache.h @ 29:bc0431cb6b8f

fix for compatibility with simplified OrthancPluginCppWrapper
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Dec 2018 21:16:54 +0100
parents d5d3cb00556a
children c304ffca5d80
comparison
equal deleted inserted replaced
28:ae19947abf68 29:bc0431cb6b8f
28 namespace OrthancPlugins 28 namespace OrthancPlugins
29 { 29 {
30 class ResourceHierarchyCache : public boost::noncopyable 30 class ResourceHierarchyCache : public boost::noncopyable
31 { 31 {
32 private: 32 private:
33 OrthancPluginContext *context_;
34 std::auto_ptr<ICache> cache_; // Maps resources to their parents 33 std::auto_ptr<ICache> cache_; // Maps resources to their parents
35 std::auto_ptr<ICache> orthancToDicom_; 34 std::auto_ptr<ICache> orthancToDicom_;
36 std::auto_ptr<ICache> dicomToOrthanc_; 35 std::auto_ptr<ICache> dicomToOrthanc_;
37 36
38 std::string ComputeKey(Orthanc::ResourceType level, 37 std::string ComputeKey(Orthanc::ResourceType level,
55 { 54 {
56 return LookupParent(target, OrthancResource(level, identifier)); 55 return LookupParent(target, OrthancResource(level, identifier));
57 } 56 }
58 57
59 public: 58 public:
60 ResourceHierarchyCache(OrthancPluginContext* context, 59 ResourceHierarchyCache(ICacheFactory& factory);
61 ICacheFactory& factory);
62 60
63 void Invalidate(Orthanc::ResourceType level, 61 void Invalidate(Orthanc::ResourceType level,
64 const std::string& identifier); 62 const std::string& identifier);
65 63
66 bool LookupStudy(std::string& patient, 64 bool LookupStudy(std::string& patient,