comparison OrthancFramework/Sources/DicomNetworking/DicomAssociationParameters.cpp @ 4296:3b70a2e6a06c

moving inline methods to source files for ABI compatibility
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 15:52:28 +0100
parents 756126cd2219
children d9473bd5ed43
comparison
equal deleted inserted replaced
4295:90f91b78d708 4296:3b70a2e6a06c
69 timeout_(GetDefaultTimeout()) 69 timeout_(GetDefaultTimeout())
70 { 70 {
71 SetRemoteModality(remote); 71 SetRemoteModality(remote);
72 } 72 }
73 73
74 74 const std::string &DicomAssociationParameters::GetLocalApplicationEntityTitle() const
75 {
76 return localAet_;
77 }
78
79 void DicomAssociationParameters::SetLocalApplicationEntityTitle(const std::string &aet)
80 {
81 localAet_ = aet;
82 }
83
84 const RemoteModalityParameters &DicomAssociationParameters::GetRemoteModality() const
85 {
86 return remote_;
87 }
88
89
75 void DicomAssociationParameters::SetRemoteModality(const RemoteModalityParameters& remote) 90 void DicomAssociationParameters::SetRemoteModality(const RemoteModalityParameters& remote)
76 { 91 {
77 CheckHost(remote.GetHost()); 92 CheckHost(remote.GetHost());
78 remote_ = remote; 93 remote_ = remote;
94 }
95
96 void DicomAssociationParameters::SetRemoteApplicationEntityTitle(const std::string &aet)
97 {
98 remote_.SetApplicationEntityTitle(aet);
79 } 99 }
80 100
81 101
82 void DicomAssociationParameters::SetRemoteHost(const std::string& host) 102 void DicomAssociationParameters::SetRemoteHost(const std::string& host)
83 { 103 {
84 CheckHost(host); 104 CheckHost(host);
85 remote_.SetHost(host); 105 remote_.SetHost(host);
106 }
107
108 void DicomAssociationParameters::SetRemotePort(uint16_t port)
109 {
110 remote_.SetPortNumber(port);
111 }
112
113 void DicomAssociationParameters::SetRemoteManufacturer(ModalityManufacturer manufacturer)
114 {
115 remote_.SetManufacturer(manufacturer);
86 } 116 }
87 117
88 118
89 bool DicomAssociationParameters::IsEqual(const DicomAssociationParameters& other) const 119 bool DicomAssociationParameters::IsEqual(const DicomAssociationParameters& other) const
90 { 120 {
92 remote_.GetApplicationEntityTitle() == other.remote_.GetApplicationEntityTitle() && 122 remote_.GetApplicationEntityTitle() == other.remote_.GetApplicationEntityTitle() &&
93 remote_.GetHost() == other.remote_.GetHost() && 123 remote_.GetHost() == other.remote_.GetHost() &&
94 remote_.GetPortNumber() == other.remote_.GetPortNumber() && 124 remote_.GetPortNumber() == other.remote_.GetPortNumber() &&
95 remote_.GetManufacturer() == other.remote_.GetManufacturer() && 125 remote_.GetManufacturer() == other.remote_.GetManufacturer() &&
96 timeout_ == other.timeout_); 126 timeout_ == other.timeout_);
127 }
128
129 void DicomAssociationParameters::SetTimeout(uint32_t seconds)
130 {
131 timeout_ = seconds;
132 }
133
134 uint32_t DicomAssociationParameters::GetTimeout() const
135 {
136 return timeout_;
137 }
138
139 bool DicomAssociationParameters::HasTimeout() const
140 {
141 return timeout_ != 0;
97 } 142 }
98 143
99 144
100 static const char* const LOCAL_AET = "LocalAet"; 145 static const char* const LOCAL_AET = "LocalAet";
101 static const char* const REMOTE = "Remote"; 146 static const char* const REMOTE = "Remote";