23#ifndef __mlDcmDRTBreedRegistrationSequenceInterface_H
24#define __mlDcmDRTBreedRegistrationSequenceInterface_H
35#ifndef __mlModuleIncludes_H
52 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
64 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
228 std::vector<DcmDRTBreedRegistrationSequenceInterface::Item>
getSequence()
const {
235 return (_itemVec.size() != 0);
241 return static_cast<MLint>(_itemVec.size());
247 if (_itemVec.size() >
idx) {
248 return _itemVec[
idx];
257 return _itemVec[_itemVec.size()-1];
267 if (_itemVec.size() >
idx) {
268 std::vector<DcmDRTBreedRegistrationSequenceInterface::Item>::iterator
it = _itemVec.begin();
269 std::advance(
it,
idx);
279 if ( _itemVec.size() >
idx ) {
280 std::vector<DcmDRTBreedRegistrationSequenceInterface::Item>::iterator
it = _itemVec.begin();
281 std::advance(
it,
idx);
290 std::vector<DcmDRTBreedRegistrationSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
bool getCodingSchemeVersion(std::string ¶meter) const
bool setBreedRegistrationNumber(std::string parameter)
bool setContextIdentifier(std::string parameter)
std::string getContextGroupExtensionCreatorUIDTag() const
std::string getContextGroupExtensionFlagTag() const
bool setMappingResource(std::string parameter)
bool setCodingSchemeDesignator(std::string parameter)
Item(DCMTree::TreePtr dcmItem)
DCMTree::TreePtr getTreePtr() const
std::string getContextGroupVersionTag() const
bool getContextIdentifier(std::string ¶meter) const
bool setCodingSchemeVersion(std::string parameter)
bool setCodeMeaning(std::string parameter)
std::string getBreedRegistrationNumberTag() const
std::string getMappingResourceTag() const
Item & operator=(const Item ©DcmItem)
bool setContextGroupExtensionCreatorUID(std::string parameter)
bool getBreedRegistrationNumber(std::string ¶meter) const
bool getContextGroupExtensionFlag(std::string ¶meter) const
bool getContextGroupVersion(std::string ¶meter) const
bool getContextGroupLocalVersion(std::string ¶meter) const
std::string getCodeValueTag() const
std::string getContextGroupLocalVersionTag() const
std::string getCodeMeaningTag() const
bool setContextGroupVersion(std::string parameter)
std::string getCodingSchemeDesignatorTag() const
std::string getBreedRegistryCodeSequenceTag() const
std::string getCodingSchemeVersionTag() const
void setBreedRegistryCodeSequence(DcmDRTBreedRegistryCodeSequenceInterface seq)
bool getContextGroupExtensionCreatorUID(std::string ¶meter) const
DcmDRTBreedRegistryCodeSequenceInterface getBreedRegistryCodeSequence() const
bool setContextGroupLocalVersion(std::string parameter)
bool setContextGroupExtensionFlag(std::string parameter)
bool setCodeValue(std::string parameter)
bool getMappingResource(std::string ¶meter) const
bool getCodeMeaning(std::string ¶meter) const
Item(const Item ©DcmItem)
bool getCodingSchemeDesignator(std::string ¶meter) const
bool getCodeValue(std::string ¶meter) const
std::string getContextIdentifierTag() const
Class to provide access to DRTBreedRegistrationSequence.
std::string getCodingSchemeVersionTag() const
bool getCodingSchemeVersion(unsigned long idx, std::string ¶meter) const
std::string getCodingSchemeDesignatorTag() const
std::string getContextIdentifierTag() const
std::string getBreedRegistryCodeSequenceTag() const
bool getContextGroupExtensionFlag(unsigned long idx, std::string ¶meter) const
DcmDRTBreedRegistryCodeSequenceInterface getBreedRegistryCodeSequence(unsigned long idx) const
std::string getContextGroupExtensionCreatorUIDTag() const
bool setCodingSchemeDesignator(unsigned long idx, std::string parameter)
bool getMappingResource(DCMTree::TreePtr item, std::string ¶meter) const
bool getBreedRegistrationNumber(DCMTree::TreePtr item, std::string ¶meter) const
void setSequence(std::vector< DcmDRTBreedRegistrationSequenceInterface::Item > dcmSequence)
Set the DRTBreedRegistrationSequence this interface class provides access to.
bool setMappingResource(unsigned long idx, std::string parameter)
bool getCodeValue(DCMTree::TreePtr item, std::string ¶meter) const
std::string getContextGroupLocalVersionTag() const
bool getContextGroupExtensionCreatorUID(unsigned long idx, std::string ¶meter) const
bool setBreedRegistrationNumber(unsigned long idx, std::string parameter)
DcmDRTBreedRegistrationSequenceInterface()
bool setCodingSchemeVersion(unsigned long idx, std::string parameter)
bool getBreedRegistrationNumber(unsigned long idx, std::string ¶meter) const
virtual ~DcmDRTBreedRegistrationSequenceInterface()
Default virtual Destructor.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
void setBreedRegistryCodeSequence(DcmDRTBreedRegistryCodeSequenceInterface seq, unsigned long idx)
bool getCodingSchemeDesignator(unsigned long idx, std::string ¶meter) const
bool getCodingSchemeDesignator(DCMTree::TreePtr item, std::string ¶meter) const
bool setCodeValue(unsigned long idx, std::string parameter)
bool setContextIdentifier(unsigned long idx, std::string parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
void addItem(DcmDRTBreedRegistrationSequenceInterface::Item newItem)
bool setContextGroupVersion(unsigned long idx, std::string parameter)
std::string getMappingResourceTag() const
DcmDRTBreedRegistrationSequenceInterface::Item & addItem()
Adds a new item to the sequence.
std::vector< DcmDRTBreedRegistrationSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
bool setContextGroupExtensionFlag(unsigned long idx, std::string parameter)
DcmDRTBreedRegistrationSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool getContextGroupVersion(unsigned long idx, std::string ¶meter) const
bool setContextGroupLocalVersion(unsigned long idx, std::string parameter)
bool hasSequence() const
Check if the DRTBreedRegistrationSequence is set.
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
std::string getCodeMeaningTag() const
std::string getContextGroupExtensionFlagTag() const
bool getCodingSchemeVersion(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTBreedRegistrationSequenceInterface(std::vector< DcmDRTBreedRegistrationSequenceInterface::Item > dcmSequence)
Default Constructor.
std::vector< DcmDRTBreedRegistrationSequenceInterface::Item > getSequence() const
Return the DRTBreedRegistrationSequence this interface class provides access to.
bool getContextGroupVersion(DCMTree::TreePtr item, std::string ¶meter) const
bool getContextGroupLocalVersion(unsigned long idx, std::string ¶meter) const
bool getCodeValue(unsigned long idx, std::string ¶meter) const
bool getContextGroupLocalVersion(DCMTree::TreePtr item, std::string ¶meter) const
bool getMappingResource(unsigned long idx, std::string ¶meter) const
bool getContextGroupExtensionFlag(DCMTree::TreePtr item, std::string ¶meter) const
bool setCodeMeaning(unsigned long idx, std::string parameter)
std::string getContextGroupVersionTag() const
std::string getCodeValueTag() const
std::string getBreedRegistrationNumberTag() const
bool getCodeMeaning(DCMTree::TreePtr item, std::string ¶meter) const
bool getContextIdentifier(unsigned long idx, std::string ¶meter) const
DcmDRTBreedRegistrationSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getContextGroupExtensionCreatorUID(DCMTree::TreePtr item, std::string ¶meter) const
bool setContextGroupExtensionCreatorUID(unsigned long idx, std::string parameter)
bool getCodeMeaning(unsigned long idx, std::string ¶meter) const
bool getContextIdentifier(DCMTree::TreePtr item, std::string ¶meter) const
Class to provide access to DRTBreedRegistryCodeSequence.
Class to provide access to DRTBreedRegistryCodeSequence.
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