Mercurial > hg > orthanc
diff OrthancServer/OrthancGetRequestHandler.h @ 3953:620e87e9e816 c-get
c-get: fixing memory with failedUIDs_
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 May 2020 09:19:35 +0200 |
parents | 4f78da5613a1 |
children | 67b457283499 |
line wrap: on
line diff
--- a/OrthancServer/OrthancGetRequestHandler.h Wed May 20 08:41:54 2020 +0200 +++ b/OrthancServer/OrthancGetRequestHandler.h Wed May 20 09:19:35 2020 +0200 @@ -55,7 +55,7 @@ unsigned int nCompleted_; unsigned int warningCount_; unsigned int nFailed_; - char *failedUIDs_; + std::string failedUIDs_; T_DIMSE_Priority priority_; DIC_US origMsgId; @@ -75,57 +75,43 @@ void addFailedUIDInstance(const char *sopInstance); public: - OrthancGetRequestHandler(ServerContext& context) : - context_(context) - { - position_ = 0; - - nRemaining_ = 0; - nCompleted_ = 0; - warningCount_ = 0; - nFailed_ = 0; - - failedUIDs_ = NULL; - } - + OrthancGetRequestHandler(ServerContext& context); + bool Handle(const DicomMap& input, const std::string& originatorIp, const std::string& originatorAet, const std::string& calledAet); - virtual Status DoNext(T_ASC_Association *); + virtual Status DoNext(T_ASC_Association *) ORTHANC_OVERRIDE; - virtual unsigned int GetSubOperationCount() const + virtual unsigned int GetSubOperationCount() const ORTHANC_OVERRIDE { return (unsigned int) instances_.size(); } - virtual unsigned int nRemaining() + virtual unsigned int nRemaining() const ORTHANC_OVERRIDE { return nRemaining_; } - virtual unsigned int nCompleted() + virtual unsigned int nCompleted() const ORTHANC_OVERRIDE { return nCompleted_; } - virtual unsigned int warningCount() + virtual unsigned int warningCount() const ORTHANC_OVERRIDE { return warningCount_; } - virtual unsigned int nFailed() + virtual unsigned int nFailed() const ORTHANC_OVERRIDE { return nFailed_; } - virtual const char * failedUids() + virtual const std::string& failedUids() const ORTHANC_OVERRIDE { return failedUIDs_; - } - - - + } }; }