Mercurial > hg > orthanc
diff OrthancServer/OrthancInitialization.cpp @ 773:3bd0589af992
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Apr 2014 15:08:51 +0200 |
parents | 31cc399c7762 |
children | 557575fd93e9 |
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp Wed Apr 30 14:51:43 2014 +0200 +++ b/OrthancServer/OrthancInitialization.cpp Wed Apr 30 15:08:51 2014 +0200 @@ -508,25 +508,6 @@ } - void ConnectToModalityUsingSymbolicName(DicomUserConnection& connection, - const std::string& name) - { - std::string aet, address; - int port; - ModalityManufacturer manufacturer; - GetDicomModalityUsingSymbolicName(name, aet, address, port, manufacturer); - - LOG(WARNING) << "Connecting to remote DICOM modality: AET=" << aet << ", address=" << address << ", port=" << port; - - connection.SetLocalApplicationEntityTitle(GetGlobalStringParameter("DicomAet", "ORTHANC")); - connection.SetDistantApplicationEntityTitle(aet); - connection.SetDistantHost(address); - connection.SetDistantPort(port); - connection.SetDistantManufacturer(manufacturer); - connection.Open(); - } - - bool IsSameAETitle(const std::string& aet1, const std::string& aet2) { @@ -587,7 +568,6 @@ } - RemoteModalityParameters GetModalityUsingSymbolicName(const std::string& name) { std::string aet, address; @@ -599,6 +579,7 @@ return RemoteModalityParameters(name, aet, address, port, manufacturer); } + RemoteModalityParameters GetModalityUsingAet(const std::string& aet) { std::string name, address; @@ -613,6 +594,5 @@ { throw OrthancException("Unknown modality for AET: " + aet); } - } }