NDEVR
API Documentation
DatasetManager

Used to group datasets (DEPRECIATED). More...

Collaboration diagram for DatasetManager:
[legend]

Public Member Functions

void addSource (Dataset *source)
 Registers a dataset source with this manager, keyed by its name.
bool hasSource (const StringView &name) const
 Checks whether a dataset source with the given name exists.
Datasetsource (const StringView &name)
 Looks up a dataset source by name.

Static Public Member Functions

static DatasetManagerDefaultManager ()
 Returns the singleton default DatasetManager instance.

Public Attributes

Dictionary< String, Dataset * > m_sources
 Maps dataset names to their Dataset pointers.

Detailed Description

Used to group datasets (DEPRECIATED).


Definition at line 71 of file DatasetManager.h.

Member Function Documentation

◆ addSource()

void DatasetManager::addSource ( Dataset * source)
inline

Registers a dataset source with this manager, keyed by its name.

Parameters
[in]sourcePointer to the Dataset to add.

Definition at line 78 of file DatasetManager.h.

References m_sources, and source().

◆ DefaultManager()

DatasetManager & DatasetManager::DefaultManager ( )
static

Returns the singleton default DatasetManager instance.

Returns
A reference to the default DatasetManager.

◆ hasSource()

bool DatasetManager::hasSource ( const StringView & name) const
inline

Checks whether a dataset source with the given name exists.

Parameters
[in]nameThe name to look up.
Returns
True if a source with that name is registered, false otherwise.

Definition at line 99 of file DatasetManager.h.

References m_sources, and name.

◆ source()

Dataset * DatasetManager::source ( const StringView & name)
inline

Looks up a dataset source by name.

Parameters
[in]nameThe name of the dataset to find.
Returns
A pointer to the Dataset, or nullptr if not found.

Definition at line 87 of file DatasetManager.h.

References m_sources, and name.

Referenced by addSource().


The documentation for this class was generated from the following file: