13 #ifndef mitkDataStorageReference_h
14 #define mitkDataStorageReference_h
108 DataStorage::Pointer m_Storage;
109 bool m_IsDefault{
false};
Lightweight metadata container for DataStorage instances.
DataStorageReference(const std::string &label, DataStorage::Pointer storage, bool isDefault=false)
Construct a DataStorageReference with the given label, storage, and default flag.
bool IsDefault() const
Check whether this is the default/primary DataStorage.
void SetStorage(DataStorage::Pointer storage)
Set the DataStorage instance associated with this reference.
void SetLabel(const std::string &label)
Set the human-readable label for this DataStorage.
DataStorage::Pointer GetStorage() const
Get the DataStorage instance associated with this reference.
bool IsValid() const
Check if this reference contains a valid (non-null) DataStorage.
bool operator==(const DataStorageReference &other) const
Equality comparison operator.
std::string GetLabel() const
Get the human-readable label for this DataStorage.
DataStorageReference()
Default constructor. Creates an invalid reference with no storage.
bool operator!=(const DataStorageReference &other) const
Inequality comparison operator.
Find image slices visible on a given plane.