changeset 508:a8938e00bc08 laaw

missing file
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Jul 2013 12:02:51 +0200
parents 6e4bd06c17c5
children d87febb5f183
files OrthancCppClient/Package/SharedLibrary.cpp
diffstat 1 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/OrthancCppClient/Package/SharedLibrary.cpp	Thu Jul 18 12:02:51 2013 +0200
@@ -0,0 +1,23 @@
+#include "../../Core/HttpClient.h"
+#include "../OrthancConnection.h"
+
+
+class SharedLibrarySingleton
+{
+public:
+  SharedLibrarySingleton()
+  {
+    Orthanc::HttpClient::GlobalInitialize();
+  }
+
+  ~SharedLibrarySingleton()
+  {
+    Orthanc::HttpClient::GlobalFinalize();
+  }
+};
+
+
+static SharedLibrarySingleton  singleton_;
+
+
+#include "Build/ExternC.cpp"