#include <DataSourceHandler.h>
An object that can load data sources.
Definition at line 20 of file DataSourceHandler.h.
◆ DataSourceHandler() [1/2]
knowrob::DataSourceHandler::DataSourceHandler |
( |
| ) |
|
|
default |
◆ ~DataSourceHandler() [1/2]
virtual knowrob::DataSourceHandler::~DataSourceHandler |
( |
| ) |
|
|
virtualdefault |
◆ DataSourceHandler() [2/2]
knowrob::DataSourceHandler::DataSourceHandler |
( |
| ) |
|
|
default |
◆ ~DataSourceHandler() [2/2]
virtual knowrob::DataSourceHandler::~DataSourceHandler |
( |
| ) |
|
|
virtualdefault |
◆ addDataHandler() [1/2]
void knowrob::DataSourceHandler::addDataHandler |
( |
const std::string & |
format, |
|
|
const DataSourceLoader & |
fn |
|
) |
| |
Add a handler for a data source format.
- Parameters
-
format | the format name. |
fn | the handler function. |
◆ addDataHandler() [2/2]
void knowrob::DataSourceHandler::addDataHandler |
( |
const std::string & |
format, |
|
|
const DataSourceLoader & |
fn |
|
) |
| |
Add a handler for a data source format.
- Parameters
-
format | the format name. |
fn | the handler function. |
◆ hasDataHandler() [1/2]
bool DataSourceHandler::hasDataHandler |
( |
const DataSourcePtr & |
dataSource | ) |
const |
Check if a handler for a data source is available.
- Parameters
-
- Returns
- true if a handler is available.
Definition at line 24 of file DataSourceHandler.cpp.
std::map< std::string, DataSourceLoader > dataSourceHandler_
◆ hasDataHandler() [2/2]
bool knowrob::DataSourceHandler::hasDataHandler |
( |
const DataSourcePtr & |
dataSource | ) |
const |
Check if a handler for a data source is available.
- Parameters
-
- Returns
- true if a handler is available.
◆ loadDataSource() [1/2]
bool DataSourceHandler::loadDataSource |
( |
const DataSourcePtr & |
dataSource | ) |
|
Load a data source. The knowledge base system calls this function for each data source that is passed to the reasoner.
- Parameters
-
dataSource | the data source to load. |
Definition at line 11 of file DataSourceHandler.cpp.
12 if (dataSource->format().empty()) {
17 return it->second(dataSource);
virtual bool loadDataSourceWithUnknownFormat(const DataSourcePtr &)
◆ loadDataSource() [2/2]
bool knowrob::DataSourceHandler::loadDataSource |
( |
const DataSourcePtr & |
dataSource | ) |
|
Load a data source. The knowledge base system calls this function for each data source that is passed to the reasoner.
- Parameters
-
dataSource | the data source to load. |
◆ loadDataSourceWithUnknownFormat() [1/2]
virtual bool knowrob::DataSourceHandler::loadDataSourceWithUnknownFormat |
( |
const DataSourcePtr & |
| ) |
|
|
inlineprotectedvirtual |
◆ loadDataSourceWithUnknownFormat() [2/2]
virtual bool knowrob::DataSourceHandler::loadDataSourceWithUnknownFormat |
( |
const DataSourcePtr & |
| ) |
|
|
inlineprotectedvirtual |
◆ dataSourceHandler_
std::map< std::string, DataSourceLoader > knowrob::DataSourceHandler::dataSourceHandler_ |
|
protected |
The documentation for this class was generated from the following files: