Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/DicomAssociationParameters.cpp Thu Nov 05 12:01:11 2020 +0100 +++ b/OrthancFramework/Sources/DicomNetworking/DicomAssociationParameters.cpp Thu Nov 05 15:52:28 2020 +0100 @@ -71,13 +71,33 @@ SetRemoteModality(remote); } - + const std::string &DicomAssociationParameters::GetLocalApplicationEntityTitle() const + { + return localAet_; + } + + void DicomAssociationParameters::SetLocalApplicationEntityTitle(const std::string &aet) + { + localAet_ = aet; + } + + const RemoteModalityParameters &DicomAssociationParameters::GetRemoteModality() const + { + return remote_; + } + + void DicomAssociationParameters::SetRemoteModality(const RemoteModalityParameters& remote) { CheckHost(remote.GetHost()); remote_ = remote; } + void DicomAssociationParameters::SetRemoteApplicationEntityTitle(const std::string &aet) + { + remote_.SetApplicationEntityTitle(aet); + } + void DicomAssociationParameters::SetRemoteHost(const std::string& host) { @@ -85,6 +105,16 @@ remote_.SetHost(host); } + void DicomAssociationParameters::SetRemotePort(uint16_t port) + { + remote_.SetPortNumber(port); + } + + void DicomAssociationParameters::SetRemoteManufacturer(ModalityManufacturer manufacturer) + { + remote_.SetManufacturer(manufacturer); + } + bool DicomAssociationParameters::IsEqual(const DicomAssociationParameters& other) const { @@ -96,6 +126,21 @@ timeout_ == other.timeout_); } + void DicomAssociationParameters::SetTimeout(uint32_t seconds) + { + timeout_ = seconds; + } + + uint32_t DicomAssociationParameters::GetTimeout() const + { + return timeout_; + } + + bool DicomAssociationParameters::HasTimeout() const + { + return timeout_ != 0; + } + static const char* const LOCAL_AET = "LocalAet"; static const char* const REMOTE = "Remote";