comparison OrthancServer/ServerJobs/DicomModalityStoreJob.h @ 3870:09798f2b985f transcoding

added a Timeout argument to every DICOM command + 'TargetAet' not mandatory anymore in /retrieve
author Alain Mazy <alain@mazy.be>
date Wed, 29 Apr 2020 12:26:51 +0200
parents 594263db316a
children ea1d32861cfc
comparison
equal deleted inserted replaced
3869:c23ef85c7d9c 3870:09798f2b985f
47 { 47 {
48 private: 48 private:
49 ServerContext& context_; 49 ServerContext& context_;
50 std::string localAet_; 50 std::string localAet_;
51 RemoteModalityParameters remote_; 51 RemoteModalityParameters remote_;
52 int timeout_;
52 std::string moveOriginatorAet_; 53 std::string moveOriginatorAet_;
53 uint16_t moveOriginatorId_; 54 uint16_t moveOriginatorId_;
54 std::unique_ptr<DicomStoreUserConnection> connection_; 55 std::unique_ptr<DicomStoreUserConnection> connection_;
55 bool storageCommitment_; 56 bool storageCommitment_;
56 57
86 return remote_; 87 return remote_;
87 } 88 }
88 89
89 void SetRemoteModality(const RemoteModalityParameters& remote); 90 void SetRemoteModality(const RemoteModalityParameters& remote);
90 91
92 void SetTimeout(int timeout)
93 {
94 timeout_ = timeout;
95 }
96
97 int GetTimeout() const
98 {
99 return timeout_;
100 }
101
91 bool HasMoveOriginator() const 102 bool HasMoveOriginator() const
92 { 103 {
93 return moveOriginatorId_ != 0; 104 return moveOriginatorId_ != 0;
94 } 105 }
95 106