Mercurial > hg > orthanc
comparison OrthancServer/OrthancGetRequestHandler.h @ 3954:67b457283499 c-get
coding style
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 May 2020 09:52:20 +0200 |
parents | 620e87e9e816 |
children | 66879215cbf3 |
comparison
equal
deleted
inserted
replaced
3953:620e87e9e816 | 3954:67b457283499 |
---|---|
56 unsigned int warningCount_; | 56 unsigned int warningCount_; |
57 unsigned int nFailed_; | 57 unsigned int nFailed_; |
58 std::string failedUIDs_; | 58 std::string failedUIDs_; |
59 | 59 |
60 T_DIMSE_Priority priority_; | 60 T_DIMSE_Priority priority_; |
61 DIC_US origMsgId; | 61 DIC_US origMsgId_; |
62 T_ASC_PresentationContextID origPresId; | 62 T_ASC_PresentationContextID origPresId_; |
63 | 63 |
64 bool getCancelled_; | 64 bool getCancelled_; |
65 | 65 |
66 bool LookupIdentifiers(std::vector<std::string>& publicIds, | 66 bool LookupIdentifiers(std::vector<std::string>& publicIds, |
67 ResourceType level, | 67 ResourceType level, |
68 const DicomMap& input); | 68 const DicomMap& input); |
69 | 69 |
70 OFCondition performGetSubOp(T_ASC_Association *assoc, | 70 OFCondition PerformGetSubOp(T_ASC_Association *assoc, |
71 DIC_UI sopClass, | 71 DIC_UI sopClass, |
72 DIC_UI sopInstance, | 72 DIC_UI sopInstance, |
73 DcmDataset *dataset); | 73 DcmDataset *dataset); |
74 | 74 |
75 void addFailedUIDInstance(const char *sopInstance); | 75 void AddFailedUIDInstance(const char *sopInstance); |
76 | 76 |
77 public: | 77 public: |
78 OrthancGetRequestHandler(ServerContext& context); | 78 OrthancGetRequestHandler(ServerContext& context); |
79 | 79 |
80 bool Handle(const DicomMap& input, | 80 bool Handle(const DicomMap& input, |
81 const std::string& originatorIp, | 81 const std::string& originatorIp, |
82 const std::string& originatorAet, | 82 const std::string& originatorAet, |
83 const std::string& calledAet); | 83 const std::string& calledAet); |
84 | 84 |
85 virtual Status DoNext(T_ASC_Association *) ORTHANC_OVERRIDE; | 85 virtual Status DoNext(T_ASC_Association *assoc) ORTHANC_OVERRIDE; |
86 | 86 |
87 virtual unsigned int GetSubOperationCount() const ORTHANC_OVERRIDE | 87 virtual unsigned int GetSubOperationCount() const ORTHANC_OVERRIDE |
88 { | 88 { |
89 return (unsigned int) instances_.size(); | 89 return static_cast<unsigned int>(instances_.size()); |
90 } | 90 } |
91 | 91 |
92 virtual unsigned int nRemaining() const ORTHANC_OVERRIDE | 92 virtual unsigned int GetRemainingCount() const ORTHANC_OVERRIDE |
93 { | 93 { |
94 return nRemaining_; | 94 return nRemaining_; |
95 } | 95 } |
96 | 96 |
97 virtual unsigned int nCompleted() const ORTHANC_OVERRIDE | 97 virtual unsigned int GetCompletedCount() const ORTHANC_OVERRIDE |
98 { | 98 { |
99 return nCompleted_; | 99 return nCompleted_; |
100 } | 100 } |
101 | 101 |
102 virtual unsigned int warningCount() const ORTHANC_OVERRIDE | 102 virtual unsigned int GetWarningCount() const ORTHANC_OVERRIDE |
103 { | 103 { |
104 return warningCount_; | 104 return warningCount_; |
105 } | 105 } |
106 | 106 |
107 virtual unsigned int nFailed() const ORTHANC_OVERRIDE | 107 virtual unsigned int GetFailedCount() const ORTHANC_OVERRIDE |
108 { | 108 { |
109 return nFailed_; | 109 return nFailed_; |
110 } | 110 } |
111 | 111 |
112 virtual const std::string& failedUids() const ORTHANC_OVERRIDE | 112 virtual const std::string& GetFailedUids() const ORTHANC_OVERRIDE |
113 { | 113 { |
114 return failedUIDs_; | 114 return failedUIDs_; |
115 } | 115 } |
116 }; | 116 }; |
117 } | 117 } |