te::da::DataSourceInfoManager Class Reference

A singleton to keep all the registered data sources. More...

#include <DataSourceInfoManager.h>

Inheritance diagram for te::da::DataSourceInfoManager:
te::common::Singleton< DataSourceInfoManager >

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 DataSourceInfoManagergetInstance ()
 It returns a reference to the singleton instance. More...

Protected Member Functions

 DataSourceInfoManager ()
 ~DataSourceInfoManager ()

Private Attributes

std::map< std::string, DataSourceInfoPtrm_datasources


class te::common::Singleton< DataSourceInfoManager >

Detailed Description

A singleton to keep all the registered data sources.

Definition at line 49 of file DataSourceInfoManager.h.

Member Typedef Documentation

Definition at line 56 of file DataSourceInfoManager.h.

Constructor & Destructor Documentation

te::da::DataSourceInfoManager::DataSourceInfoManager ( )
te::da::DataSourceInfoManager::~DataSourceInfoManager ( )

Member Function Documentation

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
static DataSourceInfoManager & te::common::Singleton< DataSourceInfoManager >::getInstance ( )

It returns a reference to the singleton instance.

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

Friends And Related Function Documentation

Definition at line 51 of file DataSourceInfoManager.h.

Member Data Documentation

std::map<std::string, DataSourceInfoPtr> te::da::DataSourceInfoManager::m_datasources

Definition at line 88 of file DataSourceInfoManager.h.

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