diff Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 2968:e361df74639f

added few plugin helpers
author am@osimis.io
date Wed, 05 Dec 2018 16:30:28 +0100
parents 3ed449d0204d
children 9b734c3e1095
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Wed Dec 05 16:30:11 2018 +0100
+++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h	Wed Dec 05 16:30:28 2018 +0100
@@ -419,6 +419,10 @@
                   const std::string& uri,
                   bool applyPlugins);
 
+  bool RestApiGetString(std::string& result,
+                        const std::string& uri,
+                        bool applyPlugins);
+
   bool RestApiPost(Json::Value& result,
                    const std::string& uri,
                    const char* body,
@@ -466,6 +470,13 @@
                   const std::string& username,
                   const std::string& password);
 
+  void AnswerJson(const Json::Value& value,
+                  OrthancPluginRestOutput* output
+                  );
+
+  const char* GetMimeType(const std::string& path);
+
+
   void LogError(const std::string& message);
 
   void LogWarning(const std::string& message);