23#ifndef __mlDcmDRTDigitalSignaturesSequenceInterface_H
24#define __mlDcmDRTDigitalSignaturesSequenceInterface_H
35#ifndef __mlModuleIncludes_H
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
64 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
195 std::vector<DcmDRTDigitalSignaturesSequenceInterface::Item>
getSequence()
const {
202 return (_itemVec.size() != 0);
208 return static_cast<MLint>(_itemVec.size());
214 if (_itemVec.size() >
idx) {
215 return _itemVec[
idx];
224 return _itemVec[_itemVec.size()-1];
234 if (_itemVec.size() >
idx) {
235 std::vector<DcmDRTDigitalSignaturesSequenceInterface::Item>::iterator
it = _itemVec.begin();
236 std::advance(
it,
idx);
246 if ( _itemVec.size() >
idx ) {
247 std::vector<DcmDRTDigitalSignaturesSequenceInterface::Item>::iterator
it = _itemVec.begin();
248 std::advance(
it,
idx);
257 std::vector<DcmDRTDigitalSignaturesSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTDigitalSignaturePurposeCodeSequence.
DcmDRTDigitalSignaturePurposeCodeSequenceInterface getDigitalSignaturePurposeCodeSequence() const
std::string getCertifiedTimestampTypeTag() const
bool setSignature(int parameter)
bool setDigitalSignatureUID(std::string parameter)
void setDigitalSignaturePurposeCodeSequence(DcmDRTDigitalSignaturePurposeCodeSequenceInterface seq)
std::string getDigitalSignatureDateTimeTag() const
std::string getMACIDNumberTag() const
std::string getCertificateTypeTag() const
bool getCertificateOfSigner(int ¶meter) const
bool getDigitalSignatureUID(std::string ¶meter) const
std::string getSignatureTag() const
bool getDigitalSignatureDateTime(std::string ¶meter) const
bool setCertifiedTimestamp(int parameter)
std::string getDigitalSignatureUIDTag() const
bool setCertificateType(std::string parameter)
bool setMACIDNumber(MLuint16 parameter)
bool getCertifiedTimestamp(int ¶meter) const
bool setDigitalSignatureDateTime(std::string parameter)
Item(const Item ©DcmItem)
bool getCertifiedTimestampType(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
bool getSignature(int ¶meter) const
Item & operator=(const Item ©DcmItem)
bool getCertificateType(std::string ¶meter) const
bool getMACIDNumber(MLuint16 ¶meter) const
bool setCertificateOfSigner(int parameter)
std::string getDigitalSignaturePurposeCodeSequenceTag() const
std::string getCertificateOfSignerTag() const
bool setCertifiedTimestampType(std::string parameter)
Item(DCMTree::TreePtr dcmItem)
std::string getCertifiedTimestampTag() const
Class to provide access to DRTDigitalSignaturesSequence.
bool getCertifiedTimestampType(unsigned long idx, std::string ¶meter) const
std::string getCertificateTypeTag() const
bool getCertificateType(unsigned long idx, std::string ¶meter) const
DcmDRTDigitalSignaturePurposeCodeSequenceInterface getDigitalSignaturePurposeCodeSequence(unsigned long idx) const
void setDigitalSignaturePurposeCodeSequence(DcmDRTDigitalSignaturePurposeCodeSequenceInterface seq, unsigned long idx)
bool getCertifiedTimestamp(unsigned long idx, int ¶meter) const
bool setSignature(unsigned long idx, int parameter)
std::string getDigitalSignatureDateTimeTag() const
bool setDigitalSignatureUID(unsigned long idx, std::string parameter)
bool setCertifiedTimestamp(unsigned long idx, int parameter)
bool getSignature(unsigned long idx, int ¶meter) const
bool getDigitalSignatureDateTime(DCMTree::TreePtr item, std::string ¶meter) const
bool getCertificateOfSigner(DCMTree::TreePtr item, int ¶meter) const
bool getCertifiedTimestamp(DCMTree::TreePtr item, int ¶meter) const
std::string getCertificateOfSignerTag() const
std::string getCertifiedTimestampTag() const
bool getDigitalSignatureDateTime(unsigned long idx, std::string ¶meter) const
void setSequence(std::vector< DcmDRTDigitalSignaturesSequenceInterface::Item > dcmSequence)
Set the DRTDigitalSignaturesSequence this interface class provides access to.
bool getDigitalSignatureUID(unsigned long idx, std::string ¶meter) const
std::string getDigitalSignatureUIDTag() const
DcmDRTDigitalSignaturesSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool setCertificateType(unsigned long idx, std::string parameter)
bool getDigitalSignatureUID(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTDigitalSignaturesSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::vector< DcmDRTDigitalSignaturesSequenceInterface::Item > getSequence() const
Return the DRTDigitalSignaturesSequence this interface class provides access to.
bool hasSequence() const
Check if the DRTDigitalSignaturesSequence is set.
bool getMACIDNumber(DCMTree::TreePtr item, MLuint16 ¶meter) const
bool getSignature(DCMTree::TreePtr item, int ¶meter) const
std::string getDigitalSignaturePurposeCodeSequenceTag() const
bool getCertifiedTimestampType(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTDigitalSignaturesSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool setCertificateOfSigner(unsigned long idx, int parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getCertificateOfSigner(unsigned long idx, int ¶meter) const
DcmDRTDigitalSignaturesSequenceInterface(std::vector< DcmDRTDigitalSignaturesSequenceInterface::Item > dcmSequence)
Default Constructor.
bool setCertifiedTimestampType(unsigned long idx, std::string parameter)
bool getMACIDNumber(unsigned long idx, MLuint16 ¶meter) const
DcmDRTDigitalSignaturesSequenceInterface()
bool setMACIDNumber(unsigned long idx, MLuint16 parameter)
std::string getSignatureTag() const
std::string getMACIDNumberTag() const
bool setDigitalSignatureDateTime(unsigned long idx, std::string parameter)
virtual ~DcmDRTDigitalSignaturesSequenceInterface()
Default virtual Destructor.
void addItem(DcmDRTDigitalSignaturesSequenceInterface::Item newItem)
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::vector< DcmDRTDigitalSignaturesSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
std::string getCertifiedTimestampTypeTag() const
bool getCertificateType(DCMTree::TreePtr item, std::string ¶meter) const
Class to provide access to DRTDigitalSignaturePurposeCodeSequence.
Class collecting some DICOM helper functionality explicitly for dcmtk.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
std::vector< TreePtr > TreePtrVector
a vector of TreePtr - used for sequences
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree