comparison Core/DicomNetworking/DicomAssociationParameters.cpp @ 3878:661c931f22ad transcoding

new unit test: OrthancJobsSerialization.DicomAssociationParameters
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 May 2020 17:02:50 +0200
parents ea1d32861cfc
children
comparison
equal deleted inserted replaced
3877:4b4f387c6bb8 3878:661c931f22ad
95 CheckHost(host); 95 CheckHost(host);
96 remote_.SetHost(host); 96 remote_.SetHost(host);
97 } 97 }
98 98
99 99
100 void DicomAssociationParameters::SetTimeout(uint32_t seconds)
101 {
102 assert(seconds != -1);
103 timeout_ = seconds;
104 }
105
106
107 bool DicomAssociationParameters::IsEqual(const DicomAssociationParameters& other) const 100 bool DicomAssociationParameters::IsEqual(const DicomAssociationParameters& other) const
108 { 101 {
109 return (localAet_ == other.localAet_ && 102 return (localAet_ == other.localAet_ &&
110 remote_.GetApplicationEntityTitle() == other.remote_.GetApplicationEntityTitle() && 103 remote_.GetApplicationEntityTitle() == other.remote_.GetApplicationEntityTitle() &&
111 remote_.GetHost() == other.remote_.GetHost() && 104 remote_.GetHost() == other.remote_.GetHost() &&