DDraceNetwork Docs
CChooseMaster Class Reference
Collaboration diagram for CChooseMaster:
[legend]

Classes

class  CData
 
class  CJob
 

Public Types

enum  { MAX_URLS = 16 }
 
typedef bool(* VALIDATOR) (json_value *pJson)
 

Public Member Functions

 CChooseMaster (IEngine *pEngine, IHttp *pHttp, VALIDATOR pfnValidator, const char **ppUrls, int NumUrls, int PreviousBestIndex)
 
virtual ~CChooseMaster ()
 
bool GetBestUrl (const char **pBestUrl) const
 
void Reset ()
 
bool IsRefreshing () const
 
void Refresh ()
 

Private Member Functions

int GetBestIndex () const
 

Private Attributes

IEnginem_pEngine
 
IHttpm_pHttp
 
int m_PreviousBestIndex
 
std::shared_ptr< CDatam_pData
 
std::shared_ptr< CJobm_pJob
 

Member Typedef Documentation

◆ VALIDATOR

typedef bool(* CChooseMaster::VALIDATOR) (json_value *pJson)

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAX_URLS 

Constructor & Destructor Documentation

◆ CChooseMaster()

CChooseMaster::CChooseMaster ( IEngine pEngine,
IHttp pHttp,
VALIDATOR  pfnValidator,
const char **  ppUrls,
int  NumUrls,
int  PreviousBestIndex 
)

◆ ~CChooseMaster()

CChooseMaster::~CChooseMaster ( )
virtual

Member Function Documentation

◆ GetBestIndex()

int CChooseMaster::GetBestIndex ( ) const
private

◆ GetBestUrl()

bool CChooseMaster::GetBestUrl ( const char **  pBestUrl) const

◆ IsRefreshing()

bool CChooseMaster::IsRefreshing ( ) const
inline

◆ Refresh()

void CChooseMaster::Refresh ( )

◆ Reset()

void CChooseMaster::Reset ( )

Member Data Documentation

◆ m_pData

std::shared_ptr<CData> CChooseMaster::m_pData
private

◆ m_pEngine

IEngine* CChooseMaster::m_pEngine
private

◆ m_pHttp

IHttp* CChooseMaster::m_pHttp
private

◆ m_pJob

std::shared_ptr<CJob> CChooseMaster::m_pJob
private

◆ m_PreviousBestIndex

int CChooseMaster::m_PreviousBestIndex
private

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