23#ifndef __mlDcmDRTFractionStatusSummarySequenceInterface_H
24#define __mlDcmDRTFractionStatusSummarySequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
140 std::vector<DcmDRTFractionStatusSummarySequenceInterface::Item>
getSequence()
const {
147 return (_itemVec.size() != 0);
153 return static_cast<MLint>(_itemVec.size());
159 if (_itemVec.size() >
idx) {
160 return _itemVec[
idx];
169 return _itemVec[_itemVec.size()-1];
179 if (_itemVec.size() >
idx) {
180 std::vector<DcmDRTFractionStatusSummarySequenceInterface::Item>::iterator
it = _itemVec.begin();
181 std::advance(
it,
idx);
191 if ( _itemVec.size() >
idx ) {
192 std::vector<DcmDRTFractionStatusSummarySequenceInterface::Item>::iterator
it = _itemVec.begin();
193 std::advance(
it,
idx);
202 std::vector<DcmDRTFractionStatusSummarySequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getTreatmentTimeTag() const
std::string getTreatmentTerminationStatusTag() const
DCMTree::TreePtr getTreePtr() const
bool getReferencedFractionNumber(std::string ¶meter) const
Item & operator=(const Item ©DcmItem)
bool getTreatmentTime(std::string ¶meter) const
Item(const Item ©DcmItem)
bool setReferencedFractionNumber(std::string parameter)
bool getTreatmentDate(std::string ¶meter) const
Item(DCMTree::TreePtr dcmItem)
std::string getTreatmentDateTag() const
bool getTreatmentTerminationStatus(std::string ¶meter) const
bool setTreatmentDate(std::string parameter)
bool setTreatmentTime(std::string parameter)
std::string getReferencedFractionNumberTag() const
bool setTreatmentTerminationStatus(std::string parameter)
Class to provide access to DRTFractionStatusSummarySequence.
bool getTreatmentDate(DCMTree::TreePtr item, std::string ¶meter) const
void setSequence(std::vector< DcmDRTFractionStatusSummarySequenceInterface::Item > dcmSequence)
Set the DRTFractionStatusSummarySequence this interface class provides access to.
bool getTreatmentTime(DCMTree::TreePtr item, std::string ¶meter) const
void addItem(DcmDRTFractionStatusSummarySequenceInterface::Item newItem)
std::string getTreatmentDateTag() const
std::string getTreatmentTimeTag() const
DcmDRTFractionStatusSummarySequenceInterface()
bool getTreatmentTerminationStatus(unsigned long idx, std::string ¶meter) const
DcmDRTFractionStatusSummarySequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool setTreatmentTime(unsigned long idx, std::string parameter)
bool setReferencedFractionNumber(unsigned long idx, std::string parameter)
DcmDRTFractionStatusSummarySequenceInterface::Item & addItem()
Adds a new item to the sequence.
bool getTreatmentTime(unsigned long idx, std::string ¶meter) const
std::string getReferencedFractionNumberTag() const
std::string getTreatmentTerminationStatusTag() const
bool getTreatmentDate(unsigned long idx, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool getTreatmentTerminationStatus(DCMTree::TreePtr item, std::string ¶meter) const
bool hasSequence() const
Check if the DRTFractionStatusSummarySequence is set.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getReferencedFractionNumber(unsigned long idx, std::string ¶meter) const
bool setTreatmentTerminationStatus(unsigned long idx, std::string parameter)
bool getReferencedFractionNumber(DCMTree::TreePtr item, std::string ¶meter) const
std::vector< DcmDRTFractionStatusSummarySequenceInterface::Item > getSequence() const
Return the DRTFractionStatusSummarySequence this interface class provides access to.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
virtual ~DcmDRTFractionStatusSummarySequenceInterface()
Default virtual Destructor.
std::vector< DcmDRTFractionStatusSummarySequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool setTreatmentDate(unsigned long idx, std::string parameter)
DcmDRTFractionStatusSummarySequenceInterface(std::vector< DcmDRTFractionStatusSummarySequenceInterface::Item > dcmSequence)
Default Constructor.
DcmDRTFractionStatusSummarySequenceInterface(DCMTree::TreePtrVector treePtrSeq)
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