Mercurial > hg > orthanc
comparison Core/DicomNetworking/RemoteModalityParameters.h @ 3785:763533d6dd67 SylvainRouquette/fix-issue169-95b752c
add PreferredTransferSyntax to RemoteModalityParameters
DicomUserConnection can now use RemoteModalityParameters.PreferredTransferSyntax instead of using the default transfer syntax (LE-implicit).
This way we can transcode by default in LE-explicit.
fix issue #169
author | sylvain.rouquette@incepto-medical.com |
---|---|
date | Wed, 18 Mar 2020 08:59:06 +0100 |
parents | 4e43e67f8ecf |
children | 3801435e34a1 |
comparison
equal
deleted
inserted
replaced
3541:4beabcea3a5c | 3785:763533d6dd67 |
---|---|
44 class RemoteModalityParameters | 44 class RemoteModalityParameters |
45 { | 45 { |
46 private: | 46 private: |
47 std::string aet_; | 47 std::string aet_; |
48 std::string host_; | 48 std::string host_; |
49 std::string preferredTransferSyntax_; | |
49 uint16_t port_; | 50 uint16_t port_; |
50 ModalityManufacturer manufacturer_; | 51 ModalityManufacturer manufacturer_; |
51 bool allowEcho_; | 52 bool allowEcho_; |
52 bool allowStore_; | 53 bool allowStore_; |
53 bool allowFind_; | 54 bool allowFind_; |
54 bool allowMove_; | 55 bool allowMove_; |
55 bool allowGet_; | 56 bool allowGet_; |
56 | |
57 void Clear(); | 57 void Clear(); |
58 | 58 |
59 void UnserializeArray(const Json::Value& serialized); | 59 void UnserializeArray(const Json::Value& serialized); |
60 | 60 |
61 void UnserializeObject(const Json::Value& serialized); | 61 void UnserializeObject(const Json::Value& serialized); |
94 void SetHost(const std::string& host) | 94 void SetHost(const std::string& host) |
95 { | 95 { |
96 host_ = host; | 96 host_ = host; |
97 } | 97 } |
98 | 98 |
99 const std::string& GetPreferredTransferSyntax() const | |
100 { | |
101 return preferredTransferSyntax_; | |
102 } | |
103 | |
104 void SetPreferredTransferSyntax(const std::string& preferredTransferSyntax) | |
105 { | |
106 preferredTransferSyntax_ = preferredTransferSyntax; | |
107 } | |
108 | |
99 uint16_t GetPortNumber() const | 109 uint16_t GetPortNumber() const |
100 { | 110 { |
101 return port_; | 111 return port_; |
102 } | 112 } |
103 | 113 |