comparison 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
comparison
equal deleted inserted replaced
1426:2cf9a12c995a 1427:d710ea64f0fd
45 host_("localhost"), 45 host_("localhost"),
46 port_(104), 46 port_(104),
47 manufacturer_(ModalityManufacturer_Generic) 47 manufacturer_(ModalityManufacturer_Generic)
48 { 48 {
49 } 49 }
50
51 RemoteModalityParameters::RemoteModalityParameters(const std::string& aet,
52 const std::string& host,
53 int port,
54 ModalityManufacturer manufacturer)
55 {
56 SetApplicationEntityTitle(aet);
57 SetHost(host);
58 SetPort(port);
59 SetManufacturer(manufacturer);
60 }
61
50 62
51 void RemoteModalityParameters::SetPort(int port) 63 void RemoteModalityParameters::SetPort(int port)
52 { 64 {
53 if (port <= 0 || port >= 65535) 65 if (port <= 0 || port >= 65535)
54 { 66 {