Mercurial > hg > orthanc
comparison Core/DicomNetworking/DicomStoreUserConnection.cpp @ 3874:2effa961f67f transcoding
forcing use of DicomAssociationParameters if creating an SCU
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 30 Apr 2020 15:00:20 +0200 |
parents | d5be23fc0106 |
children | ea1d32861cfc |
comparison
equal
deleted
inserted
replaced
3873:ae5bdde751fd | 3874:2effa961f67f |
---|---|
137 | 137 |
138 return false; | 138 return false; |
139 } | 139 } |
140 | 140 |
141 | 141 |
142 void DicomStoreUserConnection::Setup() | |
143 { | |
144 association_.reset(new DicomAssociation); | |
145 proposeCommonClasses_ = true; | |
146 proposeUncompressedSyntaxes_ = true; | |
147 proposeRetiredBigEndian_ = false; | |
148 } | |
149 | |
150 | |
151 DicomStoreUserConnection::DicomStoreUserConnection( | |
152 const std::string& localAet, | |
153 const RemoteModalityParameters& remote) : | |
154 parameters_(localAet, remote) | |
155 { | |
156 Setup(); | |
157 } | |
158 | |
159 | |
160 DicomStoreUserConnection::DicomStoreUserConnection( | 142 DicomStoreUserConnection::DicomStoreUserConnection( |
161 const DicomAssociationParameters& params) : | 143 const DicomAssociationParameters& params) : |
162 parameters_(params) | 144 parameters_(params), |
163 { | 145 association_(new DicomAssociation), |
164 Setup(); | 146 proposeCommonClasses_(true), |
147 proposeUncompressedSyntaxes_(true), | |
148 proposeRetiredBigEndian_(false) | |
149 { | |
165 } | 150 } |
166 | 151 |
167 | 152 |
168 void DicomStoreUserConnection::RegisterStorageClass(const std::string& sopClassUid, | 153 void DicomStoreUserConnection::RegisterStorageClass(const std::string& sopClassUid, |
169 DicomTransferSyntax syntax) | 154 DicomTransferSyntax syntax) |