comparison OrthancServer/Sources/QueryRetrieveHandler.h @ 4517:c494ee5d0101

Added "Timeout" parameter everywhere in "/modalities/.../"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Feb 2021 15:27:25 +0100
parents da460bef88f8
children f0038043fb97 7053502fbf97
comparison
equal deleted inserted replaced
4516:671ee7c1fd46 4517:c494ee5d0101
50 ResourceType level_; 50 ResourceType level_;
51 DicomMap query_; 51 DicomMap query_;
52 DicomFindAnswers answers_; 52 DicomFindAnswers answers_;
53 std::string modalityName_; 53 std::string modalityName_;
54 bool findNormalized_; 54 bool findNormalized_;
55 uint32_t timeout_; // New in Orthanc 1.9.1
55 56
56 void Invalidate(); 57 void Invalidate();
57 58
58 public: 59 public:
59 explicit QueryRetrieveHandler(ServerContext& context); 60 explicit QueryRetrieveHandler(ServerContext& context);
106 { 107 {
107 return findNormalized_; 108 return findNormalized_;
108 } 109 }
109 110
110 void SetFindNormalized(bool normalized); 111 void SetFindNormalized(bool normalized);
112
113 void SetTimeout(uint32_t seconds)
114 {
115 timeout_ = seconds;
116 }
117
118 uint32_t GetTimeout() const
119 {
120 return timeout_;
121 }
122
123 bool HasTimeout() const
124 {
125 return timeout_ != 0;
126 }
111 }; 127 };
112 } 128 }