23#ifndef __mlDcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface_H
24#define __mlDcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface_H
35#ifndef __mlModuleIncludes_H
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
64 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
129 std::vector<DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface::Item>
getSequence()
const {
136 return (_itemVec.size() != 0);
142 return static_cast<MLint>(_itemVec.size());
148 if (_itemVec.size() >
idx) {
149 return _itemVec[
idx];
158 return _itemVec[_itemVec.size()-1];
168 if (_itemVec.size() >
idx) {
169 std::vector<DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface::Item>::iterator
it = _itemVec.begin();
170 std::advance(
it,
idx);
180 if ( _itemVec.size() >
idx ) {
181 std::vector<DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface::Item>::iterator
it = _itemVec.begin();
182 std::advance(
it,
idx);
191 std::vector<DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTChannelSourceSequence.
bool setChannelMode(std::string parameter)
Item & operator=(const Item ©DcmItem)
bool setChannelIdentificationCode(std::string parameter)
DCMTree::TreePtr getTreePtr() const
bool getChannelIdentificationCode(std::string ¶meter) const
bool getChannelMode(std::string ¶meter) const
Item(const Item ©DcmItem)
DcmDRTChannelSourceSequenceInterface getChannelSourceSequence() const
std::string getChannelIdentificationCodeTag() const
std::string getChannelSourceSequenceTag() const
Item(DCMTree::TreePtr dcmItem)
void setChannelSourceSequence(DcmDRTChannelSourceSequenceInterface seq)
std::string getChannelModeTag() const
Class to provide access to DRTMultiplexedAudioChannelsDescriptionCodeSequence.
bool getChannelMode(DCMTree::TreePtr item, std::string ¶meter) const
void setSequence(std::vector< DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface::Item > dcmSequence)
Set the DRTMultiplexedAudioChannelsDescriptionCodeSequence this interface class provides access to.
std::string getChannelIdentificationCodeTag() const
virtual ~DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface()
Default virtual Destructor.
DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface()
bool hasSequence() const
Check if the DRTMultiplexedAudioChannelsDescriptionCodeSequence is set.
std::vector< DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface::Item > getSequence() const
Return the DRTMultiplexedAudioChannelsDescriptionCodeSequence this interface class provides access to...
bool setChannelIdentificationCode(unsigned long idx, std::string parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
std::vector< DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface(std::vector< DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getChannelIdentificationCode(DCMTree::TreePtr item, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getChannelIdentificationCode(unsigned long idx, std::string ¶meter) const
void addItem(DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface::Item newItem)
DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getChannelMode(unsigned long idx, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
std::string getChannelModeTag() const
void setChannelSourceSequence(DcmDRTChannelSourceSequenceInterface seq, unsigned long idx)
bool setChannelMode(unsigned long idx, std::string parameter)
DcmDRTChannelSourceSequenceInterface getChannelSourceSequence(unsigned long idx) const
std::string getChannelSourceSequenceTag() const
DcmDRTMultiplexedAudioChannelsDescriptionCodeSequenceInterface::Item & addItem()
Adds a new item to the sequence.
Class to provide access to DRTChannelSourceSequence.
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