23#ifndef __mlDcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface_H
24#define __mlDcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
167 void setSequence(std::vector<DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface::Item>
dcmSequence) {
173 std::vector<DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface::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<DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface::Item>::iterator
it = _itemVec.begin();
214 std::advance(
it,
idx);
224 if ( _itemVec.size() >
idx ) {
225 std::vector<DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface::Item>::iterator
it = _itemVec.begin();
226 std::advance(
it,
idx);
235 std::vector<DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool setTreatmentMachineName(std::string parameter)
bool setManufacturerModelName(std::string parameter)
std::string getManufacturerModelNameTag() const
Item & operator=(const Item ©DcmItem)
std::string getInstitutionNameTag() const
bool setDeviceSerialNumber(std::string parameter)
bool getManufacturerModelName(std::string ¶meter) const
bool getTreatmentMachineName(std::string ¶meter) const
bool setInstitutionName(std::string parameter)
Item(const Item ©DcmItem)
DCMTree::TreePtr getTreePtr() const
bool getInstitutionName(std::string ¶meter) const
std::string getInstitutionalDepartmentNameTag() const
bool setInstitutionAddress(std::string parameter)
std::string getInstitutionAddressTag() const
bool getInstitutionalDepartmentName(std::string ¶meter) const
bool setInstitutionalDepartmentName(std::string parameter)
Item(DCMTree::TreePtr dcmItem)
bool getInstitutionAddress(std::string ¶meter) const
std::string getManufacturerTag() const
bool getDeviceSerialNumber(std::string ¶meter) const
bool setManufacturer(std::string parameter)
std::string getDeviceSerialNumberTag() const
std::string getTreatmentMachineNameTag() const
bool getManufacturer(std::string ¶meter) const
Class to provide access to DRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModule.
std::string getInstitutionNameTag() const
DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
std::string getInstitutionalDepartmentNameTag() const
DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface::Item & addItem()
Adds a new item to the sequence.
bool getManufacturerModelName(DCMTree::TreePtr item, std::string ¶meter) const
bool getInstitutionalDepartmentName(unsigned long idx, std::string ¶meter) const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
bool setManufacturerModelName(unsigned long idx, std::string parameter)
bool getInstitutionAddress(unsigned long idx, std::string ¶meter) const
bool getInstitutionAddress(DCMTree::TreePtr item, std::string ¶meter) const
bool getManufacturer(unsigned long idx, std::string ¶meter) const
bool getInstitutionName(unsigned long idx, std::string ¶meter) const
bool setInstitutionAddress(unsigned long idx, std::string parameter)
bool getManufacturerModelName(unsigned long idx, std::string ¶meter) const
bool setInstitutionName(unsigned long idx, std::string parameter)
std::string getManufacturerModelNameTag() const
void addItem(DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface::Item newItem)
bool getInstitutionalDepartmentName(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface(std::vector< DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface::Item > dcmSequence)
Default Constructor.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface(DCMTree::TreePtrVector treePtrSeq)
void setSequence(std::vector< DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface::Item > dcmSequence)
Set the DRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModule this interface class provides ac...
virtual ~DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface()
Default virtual Destructor.
std::vector< DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface::Item > getSequence() const
Return the DRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModule this interface class provides...
bool getTreatmentMachineName(DCMTree::TreePtr item, std::string ¶meter) const
bool hasSequence() const
Check if the DRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModule is set.
bool setDeviceSerialNumber(unsigned long idx, std::string parameter)
bool getTreatmentMachineName(unsigned long idx, std::string ¶meter) const
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getDeviceSerialNumber(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool setTreatmentMachineName(unsigned long idx, std::string parameter)
bool getDeviceSerialNumber(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTTreatmentMachineSequenceInRTBrachyApplicationSetupsModuleInterface()
bool getInstitutionName(DCMTree::TreePtr item, std::string ¶meter) const
bool setInstitutionalDepartmentName(unsigned long idx, std::string parameter)
std::string getDeviceSerialNumberTag() const
std::string getManufacturerTag() const
std::string getInstitutionAddressTag() const
bool setManufacturer(unsigned long idx, std::string parameter)
std::string getTreatmentMachineNameTag() const
bool getManufacturer(DCMTree::TreePtr item, std::string ¶meter) const
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