LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dbaui::OOdbcEnumeration Class Referencefinal

#include <odbcconfig.hxx>

Public Member Functions

 OOdbcEnumeration ()
 
 ~OOdbcEnumeration ()
 
bool isLoaded () const
 
const OUString & getLibraryName () const
 
void getDatasourceNames (std::set< OUString > &_rNames)
 

Private Member Functions

oslGenericFunction loadSymbol (const char *_pFunctionName)
 
bool load (const char *_pLibPath)
 load the lib More...
 
void unload ()
 unload the lib More...
 
bool allocEnv ()
 ensure that an ODBC environment is allocated More...
 
void freeEnv ()
 free any allocated ODBC environment More...
 

Private Attributes

oslModule m_pOdbcLib
 
OUString m_sLibPath
 
oslGenericFunction m_pAllocHandle
 
oslGenericFunction m_pFreeHandle
 
oslGenericFunction m_pSetEnvAttr
 
oslGenericFunction m_pDataSources
 
std::unique_ptr< OdbcTypesImplm_pImpl
 

Detailed Description

Definition at line 42 of file odbcconfig.hxx.

Constructor & Destructor Documentation

◆ OOdbcEnumeration()

dbaui::OOdbcEnumeration::OOdbcEnumeration ( )

◆ ~OOdbcEnumeration()

dbaui::OOdbcEnumeration::~OOdbcEnumeration ( )

Definition at line 146 of file odbcconfig.cxx.

References freeEnv(), and unload().

Member Function Documentation

◆ allocEnv()

bool dbaui::OOdbcEnumeration::allocEnv ( )
private

ensure that an ODBC environment is allocated

Definition at line 153 of file odbcconfig.cxx.

References isLoaded(), m_pAllocHandle, m_pImpl, m_pSetEnvAttr, and sal_False.

Referenced by getDatasourceNames().

◆ freeEnv()

void dbaui::OOdbcEnumeration::freeEnv ( )
private

free any allocated ODBC environment

Definition at line 175 of file odbcconfig.cxx.

References m_pFreeHandle, and m_pImpl.

Referenced by ~OOdbcEnumeration().

◆ getDatasourceNames()

void dbaui::OOdbcEnumeration::getDatasourceNames ( std::set< OUString > &  _rNames)

◆ getLibraryName()

const OUString & dbaui::OOdbcEnumeration::getLibraryName ( ) const
inline

Definition at line 68 of file odbcconfig.hxx.

References m_sLibPath.

Referenced by dbaui::OGenericAdministrationPage::getSelectedDataSource().

◆ isLoaded()

bool dbaui::OOdbcEnumeration::isLoaded ( ) const
inline

◆ load()

bool dbaui::OOdbcEnumeration::load ( const char *  _pLibPath)
private

load the lib

Definition at line 68 of file odbcconfig.cxx.

References m_pOdbcLib, m_sLibPath, and sal_False.

Referenced by OOdbcEnumeration().

◆ loadSymbol()

oslGenericFunction dbaui::OOdbcEnumeration::loadSymbol ( const char *  _pFunctionName)
private

Definition at line 91 of file odbcconfig.cxx.

References m_pOdbcLib, and pData.

Referenced by OOdbcEnumeration().

◆ unload()

void dbaui::OOdbcEnumeration::unload ( )
private

unload the lib

Definition at line 80 of file odbcconfig.cxx.

References isLoaded(), and m_pOdbcLib.

Referenced by OOdbcEnumeration(), and ~OOdbcEnumeration().

Member Data Documentation

◆ m_pAllocHandle

oslGenericFunction dbaui::OOdbcEnumeration::m_pAllocHandle
private

Definition at line 49 of file odbcconfig.hxx.

Referenced by allocEnv(), and OOdbcEnumeration().

◆ m_pDataSources

oslGenericFunction dbaui::OOdbcEnumeration::m_pDataSources
private

Definition at line 52 of file odbcconfig.hxx.

Referenced by getDatasourceNames(), and OOdbcEnumeration().

◆ m_pFreeHandle

oslGenericFunction dbaui::OOdbcEnumeration::m_pFreeHandle
private

Definition at line 50 of file odbcconfig.hxx.

Referenced by freeEnv(), and OOdbcEnumeration().

◆ m_pImpl

std::unique_ptr<OdbcTypesImpl> dbaui::OOdbcEnumeration::m_pImpl
private

Definition at line 55 of file odbcconfig.hxx.

Referenced by allocEnv(), freeEnv(), and getDatasourceNames().

◆ m_pOdbcLib

oslModule dbaui::OOdbcEnumeration::m_pOdbcLib
private

Definition at line 44 of file odbcconfig.hxx.

Referenced by isLoaded(), load(), loadSymbol(), and unload().

◆ m_pSetEnvAttr

oslGenericFunction dbaui::OOdbcEnumeration::m_pSetEnvAttr
private

Definition at line 51 of file odbcconfig.hxx.

Referenced by allocEnv(), and OOdbcEnumeration().

◆ m_sLibPath

OUString dbaui::OOdbcEnumeration::m_sLibPath
private

Definition at line 45 of file odbcconfig.hxx.

Referenced by getLibraryName(), and load().


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