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

#include <employ_scoreboard.h>

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

Classes

struct  ScoreboardRow
 
struct  User
 

Public Member Functions

 EmployScoreboard ()
 
virtual bool init ()
 
virtual bool deinit () override
 
void loadSync ()
 
int count ()
 
nlohmann::json toJson ()
 
void asyncUpdatedQuestScore (int nQuestID)
 
void asyncUpdatedUserRating (int nUserID)
 
void asyncUpdatedLeaksScore (int nUserID)
 
- 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 Member Functions

int findScoreboardRowByRating (int rating)
 

Private Attributes

std::vector< ScoreboardRow * > m_vRows
 

Constructor & Destructor Documentation

◆ EmployScoreboard()

EmployScoreboard::EmployScoreboard ( )

Member Function Documentation

◆ asyncUpdatedLeaksScore()

void EmployScoreboard::asyncUpdatedLeaksScore ( int  nUserID)

◆ asyncUpdatedQuestScore()

void EmployScoreboard::asyncUpdatedQuestScore ( int  nQuestID)

◆ asyncUpdatedUserRating()

void EmployScoreboard::asyncUpdatedUserRating ( int  nUserID)

◆ count()

int EmployScoreboard::count ( )

◆ deinit()

bool EmployScoreboard::deinit ( )
overridevirtual

Implements WsjcppEmployBase.

◆ findScoreboardRowByRating()

int EmployScoreboard::findScoreboardRowByRating ( int  rating)
private

◆ init()

bool EmployScoreboard::init ( )
virtual

Implements WsjcppEmployBase.

◆ loadSync()

void EmployScoreboard::loadSync ( )

◆ name()

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

◆ toJson()

nlohmann::json EmployScoreboard::toJson ( )

Member Data Documentation

◆ m_vRows

std::vector<ScoreboardRow *> EmployScoreboard::m_vRows
private

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