13 #ifndef mitkDataStorageService_h
14 #define mitkDataStorageService_h
77 bool AddDataStorage(
const std::string& label, DataStorage::Pointer storage)
override;
117 mutable std::mutex m_Mutex;
119 std::string m_ActiveLabel;
120 std::vector<DataStorageReference> m_Storages;
121 StorageThreadDispatcherBase::Pointer m_Dispatcher;
Lightweight metadata container for DataStorage instances.
Default implementation of IDataStorageService.
DataStorageReference GetActiveDataStorageReference() const override
~DataStorageService() override
Destructor.
std::optional< DataStorageReference > GetDataStorageReference(const std::string &label) const override
std::vector< DataStorageReference > GetAllDataStorages() const override
std::optional< DataStorageReference > CreateDataStorage(const std::string &label) override
DataStorageService()
Constructor. Creates a default StandaloneDataStorage.
DataStorage::Pointer GetDefaultDataStorage() const override
std::optional< std::string > GetLabel(const DataStorage *storage) const override
static const std::string DEFAULT_LABEL
The label used for the default DataStorage.
StorageThreadDispatcherBase * GetDispatcher() const override
std::vector< std::string > GetAllLabels() const override
bool RemoveDataStorage(const std::string &label) override
void SetDispatcher(StorageThreadDispatcherBase *dispatcher)
Set the thread dispatcher for DataStorage operations.
DataStorage::Pointer GetActiveDataStorage() const override
bool AddDataStorage(const std::string &label, DataStorage::Pointer storage) override
bool HasDataStorage(const std::string &label) const override
bool SetActiveDataStorage(const std::string &label) override
Abstract data management class that organizes DataNode objects in a directed acyclic graph.
Service interface for managing DataStorage instances.
Abstract base class for dispatching tasks to the thread that owns DataStorage.
Find image slices visible on a given plane.