fhq-server  v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
EmployGames Class Reference

#include <employ_games.h>

Inheritance diagram for EmployGames:
Inheritance graph
[legend]
Collaboration diagram for EmployGames:
Collaboration graph
[legend]

Public Member Functions

 EmployGames ()
 
virtual bool init ()
 
virtual bool deinit ()
 
bool findGame (int nLocalId, ModelGame &modelGame)
 
bool findGame (const std::string &sUuid, ModelGame &modelGame)
 
EmployResult addGame (const ModelGame &modelGame, std::string &sError)
 
EmployResult updateGame (const ModelGame &modelGame, std::string &sError)
 
EmployResult removeGame (const std::string &sUuid)
 
- Public Member Functions inherited from WsjcppEmployBase
 WsjcppEmployBase (const std::string &sName, const std::vector< std::string > &vLoadAfter)
 
virtual ~WsjcppEmployBase ()
 
const std::vector< std::string > & loadAfter ()
 

Static Public Member Functions

static std::string name ()
 

Private Attributes

std::string TAG
 
std::vector< ModelGame * > m_vectCacheGame
 
std::map< std::string, ModelGame * > m_mapCacheGames
 

Constructor & Destructor Documentation

◆ EmployGames()

EmployGames::EmployGames ( )

Member Function Documentation

◆ addGame()

EmployResult EmployGames::addGame ( const ModelGame modelGame,
std::string &  sError 
)

◆ deinit()

bool EmployGames::deinit ( )
virtual

Implements WsjcppEmployBase.

◆ findGame() [1/2]

bool EmployGames::findGame ( int  nLocalId,
ModelGame modelGame 
)

◆ findGame() [2/2]

bool EmployGames::findGame ( const std::string &  sUuid,
ModelGame modelGame 
)

◆ init()

bool EmployGames::init ( )
virtual

Implements WsjcppEmployBase.

◆ name()

static std::string EmployGames::name ( )
inlinestatic

◆ removeGame()

EmployResult EmployGames::removeGame ( const std::string &  sUuid)

◆ updateGame()

EmployResult EmployGames::updateGame ( const ModelGame modelGame,
std::string &  sError 
)

Member Data Documentation

◆ m_mapCacheGames

std::map<std::string, ModelGame*> EmployGames::m_mapCacheGames
private

◆ m_vectCacheGame

std::vector<ModelGame*> EmployGames::m_vectCacheGame
private

◆ TAG

std::string EmployGames::TAG
private

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