diff Core/DicomNetworking/TimeoutDicomConnectionManager.h @ 2644:5b3bfdf6b790 jobs

fix Orthanc framework without DICOM support
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 May 2018 10:50:57 +0200
parents 25225f0b4f33
children 4e43e67f8ecf
line wrap: on
line diff
--- a/Core/DicomNetworking/TimeoutDicomConnectionManager.h	Tue May 29 09:12:33 2018 +0200
+++ b/Core/DicomNetworking/TimeoutDicomConnectionManager.h	Wed May 30 10:50:57 2018 +0200
@@ -35,6 +35,34 @@
 
 #include "IDicomConnectionManager.h"
 
+#if ORTHANC_ENABLE_DCMTK_NETWORKING == 0
+
+namespace Orthanc
+{
+  class TimeoutDicomConnectionManager : public IDicomConnectionManager
+  {
+  public:
+    void SetTimeout(unsigned int timeout)
+    {
+    }
+
+    unsigned int GetTimeout()
+    {
+      return 0;
+    }
+
+    void Close()
+    {
+    }
+
+    void CheckTimeout()
+    {
+    }
+  };
+}
+
+#else
+
 #include <boost/date_time/posix_time/posix_time.hpp>
 
 namespace Orthanc
@@ -70,3 +98,5 @@
                                          const RemoteModalityParameters& remote);
   };
 }
+
+#endif