Mercurial > hg > orthanc-transfers
diff Framework/OrthancInstancesCache.h @ 8:4c3437217518
fix for compatibility with simplified OrthancPluginCppWrapper
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Dec 2018 09:16:51 +0100 |
parents | 95226b754d9e |
children | 7e207ade2f1a |
line wrap: on
line diff
--- a/Framework/OrthancInstancesCache.h Fri Sep 21 12:52:23 2018 +0200 +++ b/Framework/OrthancInstancesCache.h Wed Dec 05 09:16:51 2018 +0100 @@ -60,12 +60,11 @@ typedef Orthanc::LeastRecentlyUsedIndex<std::string> Index; typedef std::map<std::string, SourceDicomInstance*> Content; - OrthancPluginContext* context_; - boost::mutex mutex_; - Index index_; - Content content_; - size_t memorySize_; - size_t maxMemorySize_; + boost::mutex mutex_; + Index index_; + Content content_; + size_t memorySize_; + size_t maxMemorySize_; // The mutex must be locked! @@ -80,15 +79,10 @@ public: - OrthancInstancesCache(OrthancPluginContext* context); + OrthancInstancesCache(); ~OrthancInstancesCache(); - OrthancPluginContext* GetContext() const - { - return context_; - } - size_t GetMemorySize(); size_t GetMaxMemorySize();