DDraceNetwork Docs
CWorker Class Reference

Public Member Functions

 CWorker (std::shared_ptr< CDbConnectionPool::CSharedData > pShared, int DebugSql)
 
void ProcessQueries ()
 

Static Public Member Functions

static void Start (void *pUser)
 

Private Member Functions

void Print (IConsole *pConsole, CDbConnectionPool::Mode DatabaseMode)
 

Private Attributes

bool m_DebugSql
 
std::vector< std::unique_ptr< IDbConnection > > m_vpReadConnections
 
std::unique_ptr< IDbConnectionm_pWriteConnection
 
std::unique_ptr< IDbConnectionm_pWriteBackup
 
std::shared_ptr< CDbConnectionPool::CSharedDatam_pShared
 

Constructor & Destructor Documentation

◆ CWorker()

CWorker::CWorker ( std::shared_ptr< CDbConnectionPool::CSharedData pShared,
int  DebugSql 
)
inline

Member Function Documentation

◆ Print()

void CWorker::Print ( IConsole pConsole,
CDbConnectionPool::Mode  DatabaseMode 
)
private

◆ ProcessQueries()

void CWorker::ProcessQueries ( )

◆ Start()

void CWorker::Start ( void *  pUser)
static

Member Data Documentation

◆ m_DebugSql

bool CWorker::m_DebugSql
private

◆ m_pShared

std::shared_ptr<CDbConnectionPool::CSharedData> CWorker::m_pShared
private

◆ m_pWriteBackup

std::unique_ptr<IDbConnection> CWorker::m_pWriteBackup
private

◆ m_pWriteConnection

std::unique_ptr<IDbConnection> CWorker::m_pWriteConnection
private

◆ m_vpReadConnections

std::vector<std::unique_ptr<IDbConnection> > CWorker::m_vpReadConnections
private

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