comparison OrthancServer/DicomProtocol/DicomUserConnection.cpp @ 772:31cc399c7762

RemoteModalityParameters
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Apr 2014 14:51:43 +0200
parents 3f946e5c3802
children a811bdf8b8eb
comparison
equal deleted inserted replaced
771:537837f50fbb 772:31cc399c7762
617 DicomUserConnection::~DicomUserConnection() 617 DicomUserConnection::~DicomUserConnection()
618 { 618 {
619 Close(); 619 Close();
620 } 620 }
621 621
622
623 void DicomUserConnection::Connect(const RemoteModalityParameters& parameters)
624 {
625 SetDistantApplicationEntityTitle(parameters.GetApplicationEntityTitle());
626 SetDistantHost(parameters.GetHost());
627 SetDistantPort(parameters.GetPort());
628 SetDistantManufacturer(parameters.GetManufacturer());
629 }
630
631
622 void DicomUserConnection::SetLocalApplicationEntityTitle(const std::string& aet) 632 void DicomUserConnection::SetLocalApplicationEntityTitle(const std::string& aet)
623 { 633 {
624 if (localAet_ != aet) 634 if (localAet_ != aet)
625 { 635 {
626 Close(); 636 Close();