comparison Plugins/Engine/OrthancPluginDatabase.h @ 3189:6f89d22a6ec0

New extensions in the database SDK: LookupResourceAndParent and GetAllMetadata
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Feb 2019 15:47:56 +0100
parents 4bbadcd03966
children 94f4a18a79cc
comparison
equal deleted inserted replaced
3188:70356580e310 3189:6f89d22a6ec0
55 public Compatibility::ISetResourcesContent 55 public Compatibility::ISetResourcesContent
56 { 56 {
57 private: 57 private:
58 class Transaction; 58 class Transaction;
59 59
60 typedef std::pair<int64_t, ResourceType> AnswerResource; 60 typedef std::pair<int64_t, ResourceType> AnswerResource;
61 typedef std::map<MetadataType, std::string> AnswerMetadata;
61 62
62 SharedLibrary& library_; 63 SharedLibrary& library_;
63 PluginsErrorDictionary& errorDictionary_; 64 PluginsErrorDictionary& errorDictionary_;
64 _OrthancPluginDatabaseAnswerType type_; 65 _OrthancPluginDatabaseAnswerType type_;
65 OrthancPluginDatabaseBackend backend_; 66 OrthancPluginDatabaseBackend backend_;
80 std::list<ServerIndexChange>* answerChanges_; 81 std::list<ServerIndexChange>* answerChanges_;
81 std::list<ExportedResource>* answerExportedResources_; 82 std::list<ExportedResource>* answerExportedResources_;
82 bool* answerDone_; 83 bool* answerDone_;
83 std::list<std::string>* answerMatchingResources_; 84 std::list<std::string>* answerMatchingResources_;
84 std::list<std::string>* answerMatchingInstances_; 85 std::list<std::string>* answerMatchingInstances_;
86 AnswerMetadata* answerMetadata_;
85 87
86 OrthancPluginDatabaseContext* GetContext() 88 OrthancPluginDatabaseContext* GetContext()
87 { 89 {
88 return reinterpret_cast<OrthancPluginDatabaseContext*>(this); 90 return reinterpret_cast<OrthancPluginDatabaseContext*>(this);
89 } 91 }