13#ifndef ML_DICOM_TREE_IMAGE_PROPERTY_EXTENSION_H
14#define ML_DICOM_TREE_IMAGE_PROPERTY_EXTENSION_H
96 std::string _fileName;
#define MLDICOM_TREE_IMAGE_PROPERTY_EXTENSION_EXPORT
Global and OS specific declarations for the MLDicomTreeImagePropertyExtension project.
Implement an ImagePropertyExtension object which can be passed to the ML.
~DicomTreeImagePropertyExtension() override
Destructor.
bool equals(const ImagePropertyExtension &imgPropExt) const override
Equality operation.
DicomTreeImagePropertyExtension & operator=(const DicomTreeImagePropertyExtension &origObj)
Assignment operator.
DicomTreeImagePropertyExtension(const DCMTree::Const_TreePtr &initDCMTree, const std::string &fileName)
Convenience constructor.
void getValueAsString(std::string &valueAsString) const override
Alternative version to get the object as string which can be faster and less memory intensive on larg...
MLErrorCode setValueFromString(const std::string &str) override
Set value of property from string value and return ML_RESULT_OK on success or another MLErrorCode on ...
void setFileName(const std::string &fileName)
Sets the filename that should be associated with the dicom tree.
ImagePropertyExtension * createClone() const override
Create a copy of this object.
void setDicomTagTree(const DCMTree::Const_TreePtr &newTree)
Set new shared DICOM tree object.
const DCMTree::Const_TreePtr & getDicomTagTree() const
Return pointer to the shared DICOM tree object.
std::string getValueAsString() const override
Return value of object as string.
const std::string & getFileName() const
Returns the filename from which the dicom tree was originally loaded.
DicomTreeImagePropertyExtension(const DicomTreeImagePropertyExtension &origObj)
Copy constructor.
DicomTreeImagePropertyExtension()
Constructor.
Base class from which one can derive own image properties.
MLint32 MLErrorCode
Type of an ML Error code.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non existing export symbol.
boost::shared_ptr< const Tree > Const_TreePtr