NCBI C++ ToolKit
Public Types | Public Member Functions | List of all members
CDbapiCtlibCFBase Class Reference

Search Toolkit Book for CDbapiCtlibCFBase

#include "ctlib_utils.hpp"
(Private to src/dbapi/driver/ctlib.)

+ Inheritance diagram for CDbapiCtlibCFBase:
+ Collaboration diagram for CDbapiCtlibCFBase:

Public Types

typedef CSimpleClassFactoryImpl< I_DriverContext, CTLibContextTParent
 
- Public Types inherited from CSimpleClassFactoryImpl< I_DriverContext, CTLibContext >
typedef CTLibContext TImplementation
 
typedef I_DriverContext TInterface
 
typedef IClassFactory< I_DriverContextTParent
 
typedef TParent::SDriverInfo TDriverInfo
 
typedef TParent::TDriverList TDriverList
 
- Public Types inherited from IClassFactory< I_DriverContext >
typedef I_DriverContext TInterface
 
typedef ncbi::SDriverInfo SDriverInfo
 
typedef ncbi::TDriverList TDriverList
 
typedef CDefaultDriverVersion< I_DriverContextTDefaultDriverVersion
 

Public Member Functions

 CDbapiCtlibCFBase (const string &driver_name)
 
 ~CDbapiCtlibCFBase (void)
 
virtual TInterfaceCreateInstance (const string &driver=kEmptyStr, CVersionInfo version=NCBI_INTERFACE_VERSION(I_DriverContext), const TPluginManagerParamTree *params=0) const
 Create instance of TDriver. More...
 
- Public Member Functions inherited from CSimpleClassFactoryImpl< I_DriverContext, CTLibContext >
 CSimpleClassFactoryImpl (const string &driver_name, int patch_level=-1)
 Construction. More...
 
void GetDriverVersions (TDriverList &info_list) const
 Versions of the interface exported by the factory. More...
 
- Public Member Functions inherited from IClassFactory< I_DriverContext >
virtual ~IClassFactory (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from IClassFactory< I_DriverContext >
static const CVersionInfoGetDefaultDrvVers (void)
 
- Protected Member Functions inherited from CSimpleClassFactoryImpl< I_DriverContext, CTLibContext >
string GetParam (const TPluginManagerParamTree *params, const string &param_name, bool mandatory, const string &default_value) const
 Utility function to get an element of parameter tree Throws an exception when mandatory parameter is missing (or returns the deafult value) More...
 
const stringGetParam (const TPluginManagerParamTree *params, const string &param_name, bool mandatory) const
 This version always defaults to the empty string so that it can safely return a reference. More...
 
int GetParamInt (const TPluginManagerParamTree *params, const string &param_name, bool, int default_value) const
 Utility function to get an integer of parameter tree Throws an exception when mandatory parameter is missing (or returns the deafult value) More...
 
Uint8 GetParamDataSize (const TPluginManagerParamTree *params, const string &param_name, bool, unsigned int default_value) const
 Utility function to get an integer of parameter tree Throws an exception when mandatory parameter is missing (or returns the deafult value) More...
 
bool GetParamBool (const TPluginManagerParamTree *params, const string &param_name, bool, bool default_value) const
 Utility function to get an bool of parameter tree Throws an exception when mandatory parameter is missing (or returns the deafult value) More...
 
double GetParamDouble (const TPluginManagerParamTree *params, const string &param_name, bool, double default_value) const
 Utility function to get a double of parameter tree Throws an exception when mandatory parameter is missing (or returns the default value) More...
 
- Protected Member Functions inherited from IClassFactory< I_DriverContext >
string GetParam (const string &driver_name, const TPluginManagerParamTree *params, const string &param_name, bool mandatory, const string &default_value) const
 Utility function to get an element of parameter tree Throws an exception when mandatory parameter is missing (or returns the default value) More...
 
const stringGetParam (const string &driver_name, const TPluginManagerParamTree *params, const string &param_name, bool mandatory) const
 This version always defaults to the empty string so that it can safely return a reference. More...
 
- Protected Attributes inherited from CSimpleClassFactoryImpl< I_DriverContext, CTLibContext >
CVersionInfo m_DriverVersionInfo
 
string m_DriverName
 

Detailed Description

Definition at line 47 of file ctlib_utils.hpp.

Member Typedef Documentation

◆ TParent

Definition at line 51 of file ctlib_utils.hpp.

Constructor & Destructor Documentation

◆ CDbapiCtlibCFBase()

CDbapiCtlibCFBase::CDbapiCtlibCFBase ( const string driver_name)

Definition at line 1746 of file context.cpp.

◆ ~CDbapiCtlibCFBase()

CDbapiCtlibCFBase::~CDbapiCtlibCFBase ( void  )

Definition at line 1752 of file context.cpp.

Member Function Documentation

◆ CreateInstance()

CDbapiCtlibCFBase::TInterface * CDbapiCtlibCFBase::CreateInstance ( const string driver = kEmptyStr,
CVersionInfo  version = NCBI_INTERFACE_VERSION(I_DriverContext),
const TPluginManagerParamTree = 0 
) const
virtual

The documentation for this class was generated from the following files:
Modified on Sat Jul 13 13:39:06 2024 by modify_doxy.py rev. 669887