comparison OrthancServer/ServerJobs/StorageCommitmentScpJob.h @ 3657:115f82775c46 storage-commitment

handling of storage commitment failure reasons
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Feb 2020 14:53:36 +0100
parents fddf3fc82362
children 08eb0f93c491
comparison
equal deleted inserted replaced
3656:cccd97333e3d 3657:115f82775c46
34 #pragma once 34 #pragma once
35 35
36 #include "../../Core/DicomNetworking/RemoteModalityParameters.h" 36 #include "../../Core/DicomNetworking/RemoteModalityParameters.h"
37 #include "../../Core/JobsEngine/SetOfCommandsJob.h" 37 #include "../../Core/JobsEngine/SetOfCommandsJob.h"
38 38
39 #include <list> 39 #include <vector>
40 40
41 namespace Orthanc 41 namespace Orthanc
42 { 42 {
43 class ServerContext; 43 class ServerContext;
44 44
45 class StorageCommitmentScpJob : public SetOfCommandsJob 45 class StorageCommitmentScpJob : public SetOfCommandsJob
46 { 46 {
47 private: 47 private:
48 class LookupCommand; 48 class StorageCommitmentCommand;
49 class LookupCommand;
49 class AnswerCommand; 50 class AnswerCommand;
50 class Unserializer; 51 class Unserializer;
51 52
52 ServerContext& context_; 53 ServerContext& context_;
53 bool ready_; 54 bool ready_;
54 std::string transactionUid_; 55 std::string transactionUid_;
55 RemoteModalityParameters remoteModality_; 56 RemoteModalityParameters remoteModality_;
56 std::string calledAet_; 57 std::string calledAet_;
57 std::list<std::string> successSopClassUids_;
58 std::list<std::string> successSopInstanceUids_;
59 std::list<std::string> failedSopClassUids_;
60 std::list<std::string> failedSopInstanceUids_;
61 58
62 void LookupInstance(const std::string& sopClassUid,
63 const std::string& sopInstanceUid);
64 void Answer(); 59 void Answer();
65 60
66 public: 61 public:
67 StorageCommitmentScpJob(ServerContext& context, 62 StorageCommitmentScpJob(ServerContext& context,
68 const std::string& transactionUid, 63 const std::string& transactionUid,