A FunctionCatalogManager is a singleton that can be used to manage function catalogs of data source implementations.
More...
#include <FunctionCatalogManager.h>
A FunctionCatalogManager is a singleton that can be used to manage function catalogs of data source implementations.
Each data source implementation must register its function catalog in this singleton. This can be achieved by providing the data source identification token (a string) and its catalog.
- See also
- FunctionCatalog
Definition at line 55 of file FunctionCatalogManager.h.
te::da::FunctionCatalogManager::~FunctionCatalogManager |
( |
| ) |
|
te::da::FunctionCatalogManager::FunctionCatalogManager |
( |
| ) |
|
|
inlineprotected |
FunctionCatalog* te::da::FunctionCatalogManager::find |
( |
const std::string & |
dsType | ) |
|
It finds the function catalog with the given data source type.
- Parameters
-
dsType | The data source type. |
- Returns
- The catalog fr the given data source type.
- Note
- Don't delete the returned pointer, it belongs to the manager!
It returns a reference to the singleton instance.
- Returns
- A reference to the singleton instance.
void te::da::FunctionCatalogManager::insert |
( |
const std::string & |
dsType, |
|
|
FunctionCatalog * |
fcatalog |
|
) |
| |
It inserts the function catalog associated to the given data source type.
- Parameters
-
dsType | The type of data source. |
fcatalog | The function catalog. The manager will take the ownership of the given function catalog. |
- Exceptions
-
Exception | It throws an exception if a catalog is already registered for the given data source type. |
std::map<std::string, FunctionCatalog*> te::da::FunctionCatalogManager::m_fcatalogMap |
|
private |
The documentation for this class was generated from the following file: