comparison OrthancServer/Sources/DicomInstanceOrigin.h @ 4204:318c16cfccab

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Sep 2020 16:18:01 +0200
parents 05b8fd21089c
children c70df925151e
comparison
equal deleted inserted replaced
4203:4d42408da117 4204:318c16cfccab
44 std::string remoteIp_; 44 std::string remoteIp_;
45 std::string dicomRemoteAet_; 45 std::string dicomRemoteAet_;
46 std::string dicomCalledAet_; 46 std::string dicomCalledAet_;
47 std::string httpUsername_; 47 std::string httpUsername_;
48 48
49 DicomInstanceOrigin(RequestOrigin origin) : 49 explicit DicomInstanceOrigin(RequestOrigin origin) :
50 origin_(origin) 50 origin_(origin)
51 { 51 {
52 } 52 }
53 53
54 public: 54 public:
55 DicomInstanceOrigin() : 55 DicomInstanceOrigin() :
56 origin_(RequestOrigin_Unknown) 56 origin_(RequestOrigin_Unknown)
57 { 57 {
58 } 58 }
59 59
60 DicomInstanceOrigin(const Json::Value& serialized); 60 explicit DicomInstanceOrigin(const Json::Value& serialized);
61 61
62 static DicomInstanceOrigin FromDicomProtocol(const char* remoteIp, 62 static DicomInstanceOrigin FromDicomProtocol(const char* remoteIp,
63 const char* remoteAet, 63 const char* remoteAet,
64 const char* calledAet); 64 const char* calledAet);
65 65