A singleton to keep all the registered data sources. More...
#include <DataSourceInfoManager.h>
Public Types | |
| typedef std::map< std::string, DataSourceInfoPtr >::const_iterator | const_iterator |
| typedef std::map< std::string, DataSourceInfoPtr >::iterator | iterator |
Public Member Functions | |
| bool | add (const DataSourceInfoPtr &ds) |
| const_iterator | begin () const |
| iterator | begin () |
| const_iterator | end () const |
| iterator | end () |
| DataSourceInfoPtr | get (const std::string &id) const |
| DataSourceInfoPtr | getByConnInfo (std::string connInfo) |
| void | getByType (const std::string &dsTypeName, std::vector< DataSourceInfoPtr > &datasources) const |
| void | remove (const std::string &id) |
| void | removeByType (const std::string &dsTypeName) |
| std::size_t | size () const |
Static Public Member Functions | |
| static DataSourceInfoManager & | getInstance () |
| It returns a reference to the singleton instance. More... | |
Protected Member Functions | |
| DataSourceInfoManager () | |
| ~DataSourceInfoManager () | |
Private Attributes | |
| std::map< std::string, DataSourceInfoPtr > | m_datasources |
Friends | |
| class | te::common::Singleton< DataSourceInfoManager > |
A singleton to keep all the registered data sources.
Definition at line 49 of file DataSourceInfoManager.h.
| typedef std::map<std::string, DataSourceInfoPtr>::const_iterator te::da::DataSourceInfoManager::const_iterator |
Definition at line 55 of file DataSourceInfoManager.h.
| typedef std::map<std::string, DataSourceInfoPtr>::iterator te::da::DataSourceInfoManager::iterator |
Definition at line 56 of file DataSourceInfoManager.h.
|
protected |
|
protected |
| bool te::da::DataSourceInfoManager::add | ( | const DataSourceInfoPtr & | ds | ) |
| const_iterator te::da::DataSourceInfoManager::begin | ( | ) | const |
| iterator te::da::DataSourceInfoManager::begin | ( | ) |
| const_iterator te::da::DataSourceInfoManager::end | ( | ) | const |
| iterator te::da::DataSourceInfoManager::end | ( | ) |
| DataSourceInfoPtr te::da::DataSourceInfoManager::get | ( | const std::string & | id | ) | const |
| DataSourceInfoPtr te::da::DataSourceInfoManager::getByConnInfo | ( | std::string | connInfo | ) |
| void te::da::DataSourceInfoManager::getByType | ( | const std::string & | dsTypeName, |
| std::vector< DataSourceInfoPtr > & | datasources | ||
| ) | const |
|
staticinherited |
It returns a reference to the singleton instance.
| void te::da::DataSourceInfoManager::remove | ( | const std::string & | id | ) |
| void te::da::DataSourceInfoManager::removeByType | ( | const std::string & | dsTypeName | ) |
| std::size_t te::da::DataSourceInfoManager::size | ( | ) | const |
|
friend |
Definition at line 51 of file DataSourceInfoManager.h.
|
private |
Definition at line 88 of file DataSourceInfoManager.h.