Mercurial > hg > orthanc
diff OrthancServer/DicomProtocol/DicomUserConnection.cpp @ 1997:f9f2aa1cc594
"MoveOriginatorID" can be specified for /modalities/.../store
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 May 2016 11:50:35 +0200 |
parents | cda5b0ab4ce5 |
children | 9b61701c35f2 |
line wrap: on
line diff
--- a/OrthancServer/DicomProtocol/DicomUserConnection.cpp Wed May 25 07:24:10 2016 +0200 +++ b/OrthancServer/DicomProtocol/DicomUserConnection.cpp Wed May 25 11:50:35 2016 +0200 @@ -151,7 +151,7 @@ void Store(DcmInputStream& is, DicomUserConnection& connection, - uint16_t moveMessageID); + uint16_t moveOriginatorID); }; @@ -256,7 +256,7 @@ void DicomUserConnection::PImpl::Store(DcmInputStream& is, DicomUserConnection& connection, - uint16_t moveMessageID) + uint16_t moveOriginatorID) { CheckIsOpen(); @@ -342,9 +342,9 @@ connection.GetLocalApplicationEntityTitle().c_str(), DIC_AE_LEN); request.opts = O_STORE_MOVEORIGINATORAETITLE; - if (moveMessageID != 0) + if (moveOriginatorID != 0) { - request.MoveOriginatorID = moveMessageID; // The type DIC_US is an alias for uint16_t + request.MoveOriginatorID = moveOriginatorID; // The type DIC_US is an alias for uint16_t request.opts |= O_STORE_MOVEORIGINATORID; } @@ -939,7 +939,7 @@ void DicomUserConnection::Store(const char* buffer, size_t size, - uint16_t moveMessageID) + uint16_t moveOriginatorID) { // Prepare an input stream for the memory buffer DcmInputBufferStream is; @@ -947,24 +947,24 @@ is.setBuffer(buffer, size); is.setEos(); - pimpl_->Store(is, *this, moveMessageID); + pimpl_->Store(is, *this, moveOriginatorID); } void DicomUserConnection::Store(const std::string& buffer, - uint16_t moveMessageID) + uint16_t moveOriginatorID) { if (buffer.size() > 0) - Store(reinterpret_cast<const char*>(&buffer[0]), buffer.size(), moveMessageID); + Store(reinterpret_cast<const char*>(&buffer[0]), buffer.size(), moveOriginatorID); else - Store(NULL, 0, moveMessageID); + Store(NULL, 0, moveOriginatorID); } void DicomUserConnection::StoreFile(const std::string& path, - uint16_t moveMessageID) + uint16_t moveOriginatorID) { // Prepare an input stream for the file DcmInputFileStream is(path.c_str()); - pimpl_->Store(is, *this, moveMessageID); + pimpl_->Store(is, *this, moveOriginatorID); } bool DicomUserConnection::Echo()