Mercurial > hg > orthanc
comparison Core/DicomNetworking/DicomUserConnection.h @ 3605:05872838ebf3 storage-commitment
DicomUserConnection: Opening of a connection for N-EVENT-REPORT
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 16 Jan 2020 18:26:47 +0100 |
parents | 872bd3b6ec72 |
children | 33ba63637d48 |
comparison
equal
deleted
inserted
replaced
3604:e327b44780bb | 3605:05872838ebf3 |
---|---|
52 { | 52 { |
53 private: | 53 private: |
54 struct PImpl; | 54 struct PImpl; |
55 boost::shared_ptr<PImpl> pimpl_; | 55 boost::shared_ptr<PImpl> pimpl_; |
56 | 56 |
57 enum Mode | |
58 { | |
59 Mode_Generic, | |
60 Mode_ReportStorageCommitment | |
61 }; | |
62 | |
57 // Connection parameters | 63 // Connection parameters |
58 std::string preferredTransferSyntax_; | 64 std::string preferredTransferSyntax_; |
59 std::string localAet_; | 65 std::string localAet_; |
60 std::string remoteAet_; | 66 std::string remoteAet_; |
61 std::string remoteHost_; | 67 std::string remoteHost_; |
65 std::list<std::string> reservedStorageSOPClasses_; | 71 std::list<std::string> reservedStorageSOPClasses_; |
66 std::set<std::string> defaultStorageSOPClasses_; | 72 std::set<std::string> defaultStorageSOPClasses_; |
67 | 73 |
68 void CheckIsOpen() const; | 74 void CheckIsOpen() const; |
69 | 75 |
70 void SetupPresentationContexts(const std::string& preferredTransferSyntax); | 76 void SetupPresentationContexts(Mode mode, |
77 const std::string& preferredTransferSyntax); | |
71 | 78 |
72 void MoveInternal(const std::string& targetAet, | 79 void MoveInternal(const std::string& targetAet, |
73 ResourceType level, | 80 ResourceType level, |
74 const DicomMap& fields); | 81 const DicomMap& fields); |
75 | 82 |
76 void ResetStorageSOPClasses(); | 83 void ResetStorageSOPClasses(); |
77 | 84 |
78 void CheckStorageSOPClassesInvariant() const; | 85 void CheckStorageSOPClassesInvariant() const; |
79 | 86 |
80 void DefaultSetup(); | 87 void DefaultSetup(); |
88 | |
89 void OpenInternal(Mode mode); | |
81 | 90 |
82 public: | 91 public: |
83 DicomUserConnection(); | 92 DicomUserConnection(); |
84 | 93 |
85 ~DicomUserConnection(); | 94 ~DicomUserConnection(); |
135 return preferredTransferSyntax_; | 144 return preferredTransferSyntax_; |
136 } | 145 } |
137 | 146 |
138 void AddStorageSOPClass(const char* sop); | 147 void AddStorageSOPClass(const char* sop); |
139 | 148 |
140 void Open(); | 149 void Open() |
150 { | |
151 OpenInternal(Mode_Generic); | |
152 } | |
141 | 153 |
142 void Close(); | 154 void Close(); |
143 | 155 |
144 bool IsOpen() const; | 156 bool IsOpen() const; |
145 | 157 |
210 | 222 |
211 static void SetDefaultTimeout(uint32_t seconds); | 223 static void SetDefaultTimeout(uint32_t seconds); |
212 | 224 |
213 bool IsSameAssociation(const std::string& localAet, | 225 bool IsSameAssociation(const std::string& localAet, |
214 const RemoteModalityParameters& remote) const; | 226 const RemoteModalityParameters& remote) const; |
227 | |
228 void ReportStorageCommitment(); | |
215 }; | 229 }; |
216 } | 230 } |