Mercurial > hg > orthanc
diff OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp @ 772:31cc399c7762
RemoteModalityParameters
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Apr 2014 14:51:43 +0200 |
parents | 3f946e5c3802 |
children | 3bd0589af992 |
line wrap: on
line diff
--- a/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp Wed Apr 30 14:15:26 2014 +0200 +++ b/OrthancServer/DicomProtocol/ReusableDicomUserConnection.cpp Wed Apr 30 14:51:43 2014 +0200 @@ -101,18 +101,28 @@ } } - ReusableDicomUserConnection::Connection::Connection - (ReusableDicomUserConnection& that, - const std::string& aet, - const std::string& address, - int port, - ModalityManufacturer manufacturer) : + ReusableDicomUserConnection::Connection::Connection(ReusableDicomUserConnection& that, + const std::string& aet, + const std::string& address, + int port, + ModalityManufacturer manufacturer) : Locker(that) { that.Open(aet, address, port, manufacturer); connection_ = that.connection_; } + + ReusableDicomUserConnection::Connection::Connection(ReusableDicomUserConnection& that, + const RemoteModalityParameters& remote) : + Locker(that) + { + that.Open(remote.GetApplicationEntityTitle(), remote.GetHost(), + remote.GetPort(), remote.GetManufacturer()); + connection_ = that.connection_; + } + + DicomUserConnection& ReusableDicomUserConnection::Connection::GetConnection() { if (connection_ == NULL)