comparison Core/DicomNetworking/DicomControlUserConnection.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 09798f2b985f
children ea1d32861cfc
comparison
equal deleted inserted replaced
3873:ae5bdde751fd 3874:2effa961f67f
432 { 432 {
433 SetupPresentationContexts(); 433 SetupPresentationContexts();
434 } 434 }
435 435
436 436
437 DicomControlUserConnection::DicomControlUserConnection(const std::string& localAet,
438 const RemoteModalityParameters& remote) :
439 parameters_(localAet, remote),
440 association_(new DicomAssociation)
441 {
442 SetupPresentationContexts();
443 }
444
445
446 void DicomControlUserConnection::Close() 437 void DicomControlUserConnection::Close()
447 { 438 {
448 assert(association_.get() != NULL); 439 assert(association_.get() != NULL);
449 association_->Close(); 440 association_->Close();
450 } 441 }