comparison OrthancFramework/Sources/DicomNetworking/DicomStoreUserConnection.h @ 5438:7a20ee948676 debug-telemis

Added a new 'Telemis' manufacturer for DicomModalities
author Alain Mazy <am@osimis.io>
date Wed, 22 Nov 2023 12:57:07 +0100
parents 742448a9b600
children 99fa307438e1
comparison
equal deleted inserted replaced
5437:85da6dcd0e08 5438:7a20ee948676
92 92
93 bool NegotiatePresentationContext(uint8_t& presentationContextId, 93 bool NegotiatePresentationContext(uint8_t& presentationContextId,
94 const std::string& sopClassUid, 94 const std::string& sopClassUid,
95 DicomTransferSyntax transferSyntax, 95 DicomTransferSyntax transferSyntax,
96 bool hasPreferred, 96 bool hasPreferred,
97 DicomTransferSyntax preferred); 97 DicomTransferSyntax preferred,
98 bool alwaysRenegotiate);
98 99
99 #if ORTHANC_ENABLE_DCMTK_TRANSCODING == 1 100 #if ORTHANC_ENABLE_DCMTK_TRANSCODING == 1
100 void LookupTranscoding(std::set<DicomTransferSyntax>& acceptedSyntaxes, 101 void LookupTranscoding(std::set<DicomTransferSyntax>& acceptedSyntaxes,
101 const std::string& sopClassUid, 102 const std::string& sopClassUid,
102 DicomTransferSyntax sourceSyntax, 103 DicomTransferSyntax sourceSyntax,
103 bool hasPreferred, 104 bool hasPreferred,
104 DicomTransferSyntax preferred); 105 DicomTransferSyntax preferred,
106 bool alwaysRenegotiate);
105 #endif 107 #endif
106 108
107 public: 109 public:
108 explicit DicomStoreUserConnection(const DicomAssociationParameters& params); 110 explicit DicomStoreUserConnection(const DicomAssociationParameters& params);
109 111
127 void Store(std::string& sopClassUid, 129 void Store(std::string& sopClassUid,
128 std::string& sopInstanceUid, 130 std::string& sopInstanceUid,
129 DcmFileFormat& dicom, 131 DcmFileFormat& dicom,
130 bool hasMoveOriginator, 132 bool hasMoveOriginator,
131 const std::string& moveOriginatorAET, 133 const std::string& moveOriginatorAET,
132 uint16_t moveOriginatorID); 134 uint16_t moveOriginatorID,
135 bool alwaysRenegotiate);
133 136
134 void Store(std::string& sopClassUid, 137 void Store(std::string& sopClassUid,
135 std::string& sopInstanceUid, 138 std::string& sopInstanceUid,
136 const void* buffer, 139 const void* buffer,
137 size_t size, 140 size_t size,
138 bool hasMoveOriginator, 141 bool hasMoveOriginator,
139 const std::string& moveOriginatorAET, 142 const std::string& moveOriginatorAET,
140 uint16_t moveOriginatorID); 143 uint16_t moveOriginatorID,
144 bool alwaysRenegotiate);
141 145
142 void LookupParameters(std::string& sopClassUid, 146 void LookupParameters(std::string& sopClassUid,
143 std::string& sopInstanceUid, 147 std::string& sopInstanceUid,
144 DicomTransferSyntax& transferSyntax, 148 DicomTransferSyntax& transferSyntax,
145 DcmFileFormat& dicom); 149 DcmFileFormat& dicom);
151 const void* buffer, 155 const void* buffer,
152 size_t size, 156 size_t size,
153 DicomTransferSyntax preferredTransferSyntax, 157 DicomTransferSyntax preferredTransferSyntax,
154 bool hasMoveOriginator, 158 bool hasMoveOriginator,
155 const std::string& moveOriginatorAET, 159 const std::string& moveOriginatorAET,
156 uint16_t moveOriginatorID); 160 uint16_t moveOriginatorID,
161 bool alwaysRenegotiate);
157 #endif 162 #endif
158 163
159 #if ORTHANC_ENABLE_DCMTK_TRANSCODING == 1 164 #if ORTHANC_ENABLE_DCMTK_TRANSCODING == 1
160 void Transcode(std::string& sopClassUid /* out */, 165 void Transcode(std::string& sopClassUid /* out */,
161 std::string& sopInstanceUid /* out */, 166 std::string& sopInstanceUid /* out */,
162 IDicomTranscoder& transcoder, 167 IDicomTranscoder& transcoder,
163 const void* buffer, 168 const void* buffer,
164 size_t size, 169 size_t size,
165 bool hasMoveOriginator, 170 bool hasMoveOriginator,
166 const std::string& moveOriginatorAET, 171 const std::string& moveOriginatorAET,
167 uint16_t moveOriginatorID); 172 uint16_t moveOriginatorID,
173 bool alwaysRenegotiate);
168 #endif 174 #endif
169 }; 175 };
170 } 176 }