diff 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
line wrap: on
line diff
--- a/OrthancServer/ServerToolbox.h	Fri Jan 04 17:22:47 2019 +0100
+++ b/OrthancServer/ServerToolbox.h	Fri Jan 04 17:48:34 2019 +0100
@@ -39,6 +39,8 @@
 #include <boost/noncopyable.hpp>
 #include <list>
 
+#include <orthanc/OrthancCDatabasePlugin.h>
+
 namespace Orthanc
 {
   class ServerContext;
@@ -122,6 +124,11 @@
 
     // WARNING: The database should be locked with a transaction!
     void Store(Compatibility::ISetResourcesContent& target) const;
+
+    // WARNING: The resulting C structure will contain pointers to the
+    // current object. Don't delete or modify it!
+    void EncodeForPlugins(std::vector<OrthancPluginResourcesContentTags>& tags,
+                          std::vector<OrthancPluginResourcesContentMetadata>& metadata) const;
   };