comparison 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
comparison
equal deleted inserted replaced
2643:56bee263645f 2644:5b3bfdf6b790
33 33
34 #pragma once 34 #pragma once
35 35
36 #include "IDicomConnectionManager.h" 36 #include "IDicomConnectionManager.h"
37 37
38 #if ORTHANC_ENABLE_DCMTK_NETWORKING == 0
39
40 namespace Orthanc
41 {
42 class TimeoutDicomConnectionManager : public IDicomConnectionManager
43 {
44 public:
45 void SetTimeout(unsigned int timeout)
46 {
47 }
48
49 unsigned int GetTimeout()
50 {
51 return 0;
52 }
53
54 void Close()
55 {
56 }
57
58 void CheckTimeout()
59 {
60 }
61 };
62 }
63
64 #else
65
38 #include <boost/date_time/posix_time/posix_time.hpp> 66 #include <boost/date_time/posix_time/posix_time.hpp>
39 67
40 namespace Orthanc 68 namespace Orthanc
41 { 69 {
42 class TimeoutDicomConnectionManager : public IDicomConnectionManager 70 class TimeoutDicomConnectionManager : public IDicomConnectionManager
68 96
69 virtual IResource* AcquireConnection(const std::string& localAet, 97 virtual IResource* AcquireConnection(const std::string& localAet,
70 const RemoteModalityParameters& remote); 98 const RemoteModalityParameters& remote);
71 }; 99 };
72 } 100 }
101
102 #endif