comparison OrthancServer/DicomProtocol/RemoteModalityParameters.h @ 1654:3727a09e7b53

fix some icc warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 28 Sep 2015 15:03:35 +0200
parents d710ea64f0fd
children b1291df2f780
comparison
equal deleted inserted replaced
1653:0c86b30bb8b2 1654:3727a09e7b53
32 32
33 #pragma once 33 #pragma once
34 34
35 #include "../ServerEnumerations.h" 35 #include "../ServerEnumerations.h"
36 36
37 #include <stdint.h>
37 #include <string> 38 #include <string>
38 #include <json/json.h> 39 #include <json/json.h>
39 40
40 namespace Orthanc 41 namespace Orthanc
41 { 42 {
42 class RemoteModalityParameters 43 class RemoteModalityParameters
43 { 44 {
44 private: 45 private:
45 std::string aet_; 46 std::string aet_;
46 std::string host_; 47 std::string host_;
47 int port_; 48 uint16_t port_;
48 ModalityManufacturer manufacturer_; 49 ModalityManufacturer manufacturer_;
49 50
50 public: 51 public:
51 RemoteModalityParameters(); 52 RemoteModalityParameters();
52 53
53 RemoteModalityParameters(const std::string& aet, 54 RemoteModalityParameters(const std::string& aet,
54 const std::string& host, 55 const std::string& host,
55 int port, 56 uint16_t port,
56 ModalityManufacturer manufacturer); 57 ModalityManufacturer manufacturer);
57 58
58 const std::string& GetApplicationEntityTitle() const 59 const std::string& GetApplicationEntityTitle() const
59 { 60 {
60 return aet_; 61 return aet_;
73 void SetHost(const std::string& host) 74 void SetHost(const std::string& host)
74 { 75 {
75 host_ = host; 76 host_ = host;
76 } 77 }
77 78
78 int GetPort() const 79 uint16_t GetPort() const
79 { 80 {
80 return port_; 81 return port_;
81 } 82 }
82 83
83 void SetPort(int port); 84 void SetPort(uint16_t port)
85 {
86 port_ = port;
87 }
84 88
85 ModalityManufacturer GetManufacturer() const 89 ModalityManufacturer GetManufacturer() const
86 { 90 {
87 return manufacturer_; 91 return manufacturer_;
88 } 92 }