diff OrthancServer/DicomProtocol/RemoteModalityParameters.cpp @ 1427:d710ea64f0fd

Custom setting of the local AET during C-Store SCU (both in Lua and in the REST API)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 29 Jun 2015 12:42:54 +0200
parents 6e7e5ed91c2d
children 3727a09e7b53
line wrap: on
line diff
--- a/OrthancServer/DicomProtocol/RemoteModalityParameters.cpp	Fri Jun 26 16:30:51 2015 +0200
+++ b/OrthancServer/DicomProtocol/RemoteModalityParameters.cpp	Mon Jun 29 12:42:54 2015 +0200
@@ -48,6 +48,18 @@
   {
   }
 
+  RemoteModalityParameters::RemoteModalityParameters(const std::string& aet,
+                                                     const std::string& host,
+                                                     int port,
+                                                     ModalityManufacturer manufacturer)
+  {
+    SetApplicationEntityTitle(aet);
+    SetHost(host);
+    SetPort(port);
+    SetManufacturer(manufacturer);
+  }
+
+
   void RemoteModalityParameters::SetPort(int port)
   {
     if (port <= 0 || port >= 65535)