comparison 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
comparison
equal deleted inserted replaced
771:537837f50fbb 772:31cc399c7762
99 } 99 }
100 } 100 }
101 } 101 }
102 } 102 }
103 103
104 ReusableDicomUserConnection::Connection::Connection 104 ReusableDicomUserConnection::Connection::Connection(ReusableDicomUserConnection& that,
105 (ReusableDicomUserConnection& that, 105 const std::string& aet,
106 const std::string& aet, 106 const std::string& address,
107 const std::string& address, 107 int port,
108 int port, 108 ModalityManufacturer manufacturer) :
109 ModalityManufacturer manufacturer) :
110 Locker(that) 109 Locker(that)
111 { 110 {
112 that.Open(aet, address, port, manufacturer); 111 that.Open(aet, address, port, manufacturer);
113 connection_ = that.connection_; 112 connection_ = that.connection_;
114 } 113 }
114
115
116 ReusableDicomUserConnection::Connection::Connection(ReusableDicomUserConnection& that,
117 const RemoteModalityParameters& remote) :
118 Locker(that)
119 {
120 that.Open(remote.GetApplicationEntityTitle(), remote.GetHost(),
121 remote.GetPort(), remote.GetManufacturer());
122 connection_ = that.connection_;
123 }
124
115 125
116 DicomUserConnection& ReusableDicomUserConnection::Connection::GetConnection() 126 DicomUserConnection& ReusableDicomUserConnection::Connection::GetConnection()
117 { 127 {
118 if (connection_ == NULL) 128 if (connection_ == NULL)
119 { 129 {