23#ifndef __mlDcmDRTCodingSchemeIdentificationSequenceInterface_H
24#define __mlDcmDRTCodingSchemeIdentificationSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
173 std::vector<DcmDRTCodingSchemeIdentificationSequenceInterface::Item>
getSequence()
const {
180 return (_itemVec.size() != 0);
186 return static_cast<MLint>(_itemVec.size());
192 if (_itemVec.size() >
idx) {
193 return _itemVec[
idx];
202 return _itemVec[_itemVec.size()-1];
212 if (_itemVec.size() >
idx) {
213 std::vector<DcmDRTCodingSchemeIdentificationSequenceInterface::Item>::iterator
it = _itemVec.begin();
214 std::advance(
it,
idx);
224 if ( _itemVec.size() >
idx ) {
225 std::vector<DcmDRTCodingSchemeIdentificationSequenceInterface::Item>::iterator
it = _itemVec.begin();
226 std::advance(
it,
idx);
235 std::vector<DcmDRTCodingSchemeIdentificationSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getCodingSchemeUIDTag() const
Item(const Item ©DcmItem)
std::string getCodingSchemeDesignatorTag() const
std::string getCodingSchemeRegistryTag() const
bool setCodingSchemeVersion(std::string parameter)
bool getCodingSchemeExternalID(std::string ¶meter) const
std::string getCodingSchemeExternalIDTag() const
Item & operator=(const Item ©DcmItem)
std::string getCodingSchemeResponsibleOrganizationTag() const
Item(DCMTree::TreePtr dcmItem)
std::string getCodingSchemeVersionTag() const
bool setCodingSchemeName(std::string parameter)
bool getCodingSchemeUID(std::string ¶meter) const
DCMTree::TreePtr getTreePtr() const
bool setCodingSchemeResponsibleOrganization(std::string parameter)
bool getCodingSchemeRegistry(std::string ¶meter) const
bool setCodingSchemeDesignator(std::string parameter)
bool setCodingSchemeUID(std::string parameter)
bool getCodingSchemeVersion(std::string ¶meter) const
bool setCodingSchemeExternalID(std::string parameter)
std::string getCodingSchemeNameTag() const
bool getCodingSchemeDesignator(std::string ¶meter) const
bool getCodingSchemeName(std::string ¶meter) const
bool getCodingSchemeResponsibleOrganization(std::string ¶meter) const
bool setCodingSchemeRegistry(std::string parameter)
Class to provide access to DRTCodingSchemeIdentificationSequence.
std::string getCodingSchemeDesignatorTag() const
bool setCodingSchemeDesignator(unsigned long idx, std::string parameter)
bool getCodingSchemeUID(unsigned long idx, std::string ¶meter) const
bool getCodingSchemeVersion(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTCodingSchemeIdentificationSequenceInterface()
DcmDRTCodingSchemeIdentificationSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getCodingSchemeUID(DCMTree::TreePtr item, std::string ¶meter) const
std::string getCodingSchemeVersionTag() const
bool getCodingSchemeDesignator(DCMTree::TreePtr item, std::string ¶meter) const
bool setCodingSchemeVersion(unsigned long idx, std::string parameter)
std::vector< DcmDRTCodingSchemeIdentificationSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool getCodingSchemeName(DCMTree::TreePtr item, std::string ¶meter) const
bool getCodingSchemeResponsibleOrganization(unsigned long idx, std::string ¶meter) const
std::string getCodingSchemeRegistryTag() const
bool getCodingSchemeExternalID(DCMTree::TreePtr item, std::string ¶meter) const
bool setCodingSchemeExternalID(unsigned long idx, std::string parameter)
bool getCodingSchemeName(unsigned long idx, std::string ¶meter) const
DcmDRTCodingSchemeIdentificationSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getCodingSchemeResponsibleOrganization(DCMTree::TreePtr item, std::string ¶meter) const
bool getCodingSchemeRegistry(unsigned long idx, std::string ¶meter) const
DcmDRTCodingSchemeIdentificationSequenceInterface::Item & addItem()
Adds a new item to the sequence.
DcmDRTCodingSchemeIdentificationSequenceInterface(std::vector< DcmDRTCodingSchemeIdentificationSequenceInterface::Item > dcmSequence)
Default Constructor.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getCodingSchemeExternalID(unsigned long idx, std::string ¶meter) const
bool getCodingSchemeRegistry(DCMTree::TreePtr item, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
void setSequence(std::vector< DcmDRTCodingSchemeIdentificationSequenceInterface::Item > dcmSequence)
Set the DRTCodingSchemeIdentificationSequence this interface class provides access to.
std::string getCodingSchemeExternalIDTag() const
std::vector< DcmDRTCodingSchemeIdentificationSequenceInterface::Item > getSequence() const
Return the DRTCodingSchemeIdentificationSequence this interface class provides access to.
std::string getCodingSchemeUIDTag() const
bool getCodingSchemeDesignator(unsigned long idx, std::string ¶meter) const
virtual ~DcmDRTCodingSchemeIdentificationSequenceInterface()
Default virtual Destructor.
bool getCodingSchemeVersion(unsigned long idx, std::string ¶meter) const
bool setCodingSchemeName(unsigned long idx, std::string parameter)
bool hasSequence() const
Check if the DRTCodingSchemeIdentificationSequence is set.
std::string getCodingSchemeResponsibleOrganizationTag() const
bool setCodingSchemeResponsibleOrganization(unsigned long idx, std::string parameter)
std::string getCodingSchemeNameTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
void addItem(DcmDRTCodingSchemeIdentificationSequenceInterface::Item newItem)
bool setCodingSchemeUID(unsigned long idx, std::string parameter)
bool setCodingSchemeRegistry(unsigned long idx, std::string parameter)
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