23#ifndef __mlDcmDRTOriginalAttributesSequenceInterface_H
24#define __mlDcmDRTOriginalAttributesSequenceInterface_H
35#ifndef __mlModuleIncludes_H
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
64 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
195 std::vector<DcmDRTOriginalAttributesSequenceInterface::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<DcmDRTOriginalAttributesSequenceInterface::Item>::iterator
it = _itemVec.begin();
236 std::advance(
it,
idx);
246 if ( _itemVec.size() >
idx ) {
247 std::vector<DcmDRTOriginalAttributesSequenceInterface::Item>::iterator
it = _itemVec.begin();
248 std::advance(
it,
idx);
257 std::vector<DcmDRTOriginalAttributesSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTModifiedAttributesSequence.
bool getReferencedSOPInstanceUID(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
bool getAttributeModificationDateTime(std::string ¶meter) const
bool setReferencedSOPInstanceUID(std::string parameter)
std::string getRetrieveURITag() const
bool setSourceOfPreviousValues(std::string parameter)
DcmDRTModifiedAttributesSequenceInterface getModifiedAttributesSequence() const
bool setModifyingSystem(std::string parameter)
bool getHL7InstanceIdentifier(std::string ¶meter) const
std::string getReferencedSOPClassUIDTag() const
Item(DCMTree::TreePtr dcmItem)
std::string getReasonForTheAttributeModificationTag() const
bool getSourceOfPreviousValues(std::string ¶meter) const
bool setReferencedSOPClassUID(std::string parameter)
std::string getAttributeModificationDateTimeTag() const
bool getModifyingSystem(std::string ¶meter) const
std::string getHL7InstanceIdentifierTag() const
Item(const Item ©DcmItem)
std::string getSourceOfPreviousValuesTag() const
std::string getModifyingSystemTag() const
bool getReferencedSOPClassUID(std::string ¶meter) const
void setModifiedAttributesSequence(DcmDRTModifiedAttributesSequenceInterface seq)
std::string getModifiedAttributesSequenceTag() const
DCMTree::TreePtr getTreePtr() const
std::string getReferencedSOPInstanceUIDTag() const
bool setRetrieveURI(std::string parameter)
bool setAttributeModificationDateTime(std::string parameter)
bool setHL7InstanceIdentifier(std::string parameter)
bool getReasonForTheAttributeModification(std::string ¶meter) const
bool getRetrieveURI(std::string ¶meter) const
bool setReasonForTheAttributeModification(std::string parameter)
Class to provide access to DRTOriginalAttributesSequence.
bool setReasonForTheAttributeModification(unsigned long idx, std::string parameter)
bool setReferencedSOPClassUID(unsigned long idx, std::string parameter)
std::string getRetrieveURITag() const
bool getReferencedSOPClassUID(unsigned long idx, std::string ¶meter) const
bool getRetrieveURI(unsigned long idx, std::string ¶meter) const
std::string getModifiedAttributesSequenceTag() const
std::string getAttributeModificationDateTimeTag() const
bool getSourceOfPreviousValues(unsigned long idx, std::string ¶meter) const
std::string getHL7InstanceIdentifierTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
std::string getReferencedSOPInstanceUIDTag() const
std::string getSourceOfPreviousValuesTag() const
bool getModifyingSystem(unsigned long idx, std::string ¶meter) const
std::string getReferencedSOPClassUIDTag() const
DcmDRTOriginalAttributesSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
DcmDRTOriginalAttributesSequenceInterface(std::vector< DcmDRTOriginalAttributesSequenceInterface::Item > dcmSequence)
Default Constructor.
virtual ~DcmDRTOriginalAttributesSequenceInterface()
Default virtual Destructor.
bool setAttributeModificationDateTime(unsigned long idx, std::string parameter)
void setSequence(std::vector< DcmDRTOriginalAttributesSequenceInterface::Item > dcmSequence)
Set the DRTOriginalAttributesSequence this interface class provides access to.
bool getModifyingSystem(DCMTree::TreePtr item, std::string ¶meter) const
bool setReferencedSOPInstanceUID(unsigned long idx, std::string parameter)
bool setSourceOfPreviousValues(unsigned long idx, std::string parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getReasonForTheAttributeModification(unsigned long idx, std::string ¶meter) const
DcmDRTOriginalAttributesSequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool setModifyingSystem(unsigned long idx, std::string parameter)
DcmDRTOriginalAttributesSequenceInterface()
void setModifiedAttributesSequence(DcmDRTModifiedAttributesSequenceInterface seq, unsigned long idx)
bool getReferencedSOPInstanceUID(unsigned long idx, std::string ¶meter) const
bool hasSequence() const
Check if the DRTOriginalAttributesSequence is set.
bool getReferencedSOPClassUID(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTOriginalAttributesSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool setHL7InstanceIdentifier(unsigned long idx, std::string parameter)
bool getHL7InstanceIdentifier(DCMTree::TreePtr item, std::string ¶meter) const
bool setRetrieveURI(unsigned long idx, std::string parameter)
bool getAttributeModificationDateTime(DCMTree::TreePtr item, std::string ¶meter) const
bool getHL7InstanceIdentifier(unsigned long idx, std::string ¶meter) const
bool getReasonForTheAttributeModification(DCMTree::TreePtr item, std::string ¶meter) const
bool getAttributeModificationDateTime(unsigned long idx, std::string ¶meter) const
std::string getReasonForTheAttributeModificationTag() const
std::string getModifyingSystemTag() const
std::vector< DcmDRTOriginalAttributesSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
std::vector< DcmDRTOriginalAttributesSequenceInterface::Item > getSequence() const
Return the DRTOriginalAttributesSequence this interface class provides access to.
void addItem(DcmDRTOriginalAttributesSequenceInterface::Item newItem)
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
DcmDRTModifiedAttributesSequenceInterface getModifiedAttributesSequence(unsigned long idx) const
bool getReferencedSOPInstanceUID(DCMTree::TreePtr item, std::string ¶meter) const
bool getRetrieveURI(DCMTree::TreePtr item, std::string ¶meter) const
bool getSourceOfPreviousValues(DCMTree::TreePtr item, std::string ¶meter) const
Class to provide access to DRTModifiedAttributesSequence.
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