comparison OrthancServer/ServerToolbox.h @ 3088:d498ece73562 db-changes

preparing extension CreateResources
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 04 Jan 2019 17:48:34 +0100
parents 683d572424b6
children fb8ee0786b1e
comparison
equal deleted inserted replaced
3087:df1b17be20f6 3088:d498ece73562
36 #include "ServerEnumerations.h" 36 #include "ServerEnumerations.h"
37 37
38 #include <json/json.h> 38 #include <json/json.h>
39 #include <boost/noncopyable.hpp> 39 #include <boost/noncopyable.hpp>
40 #include <list> 40 #include <list>
41
42 #include <orthanc/OrthancCDatabasePlugin.h>
41 43
42 namespace Orthanc 44 namespace Orthanc
43 { 45 {
44 class ServerContext; 46 class ServerContext;
45 class IDatabaseWrapper; 47 class IDatabaseWrapper;
120 ResourceType level, 122 ResourceType level,
121 const DicomMap& dicomSummary); 123 const DicomMap& dicomSummary);
122 124
123 // WARNING: The database should be locked with a transaction! 125 // WARNING: The database should be locked with a transaction!
124 void Store(Compatibility::ISetResourcesContent& target) const; 126 void Store(Compatibility::ISetResourcesContent& target) const;
127
128 // WARNING: The resulting C structure will contain pointers to the
129 // current object. Don't delete or modify it!
130 void EncodeForPlugins(std::vector<OrthancPluginResourcesContentTags>& tags,
131 std::vector<OrthancPluginResourcesContentMetadata>& metadata) const;
125 }; 132 };
126 133
127 134
128 namespace ServerToolbox 135 namespace ServerToolbox
129 { 136 {