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

#include <model_game.h>

Collaboration diagram for ModelGame:
Collaboration graph
[legend]

Public Member Functions

 ModelGame ()
 
int localId () const
 
void setLocalId (int nLocalId)
 
const std::string & uuid () const
 
void setUuid (std::string sUuid)
 
const std::string & name () const
 
void setName (std::string sName)
 
const std::string & description () const
 
void setDescription (std::string sDescription)
 
const std::string & state () const
 
void setState (const std::string &sState)
 
const std::string & form () const
 
void setForm (std::string sForm)
 
const std::string & type () const
 
void setType (std::string sType)
 
const std::string & dateStart () const
 
void setDateStart (std::string sDateStart)
 
const std::string & dateStop () const
 
void setDateStop (std::string sDateStop)
 
const std::string & dateRestart () const
 
void setDateRestart (std::string sDateRestart)
 
const std::string & organizators () const
 
void setOrganizators (std::string sOrganizators)
 
int maxScore () const
 
void setMaxScore (int nMaxScore)
 
void copy (const ModelGame &modelGame)
 
ModelGameclone () const
 
nlohmann::json toJson ()
 
void fillFrom (const nlohmann::json &jsonGame)
 

Private Attributes

std::string TAG
 
int m_nLocalId
 
std::string m_sUuid
 
std::string m_sName
 
std::string m_sDescription
 
std::string m_sState
 
std::string m_sForm
 
std::string m_sType
 
std::string m_sDateStart
 
std::string m_sDateStop
 
std::string m_sDateRestart
 
std::string m_sOrganizators
 
int m_nMaxScore
 
ValidatorGameTypem_pValidatorGameType
 
ValidatorGameStatem_pValidatorGameState
 
ValidatorGameFormm_pValidatorGameForm
 

Constructor & Destructor Documentation

◆ ModelGame()

ModelGame::ModelGame ( )

Member Function Documentation

◆ clone()

ModelGame * ModelGame::clone ( ) const

◆ copy()

void ModelGame::copy ( const ModelGame modelGame)

◆ dateRestart()

const std::string & ModelGame::dateRestart ( ) const

◆ dateStart()

const std::string & ModelGame::dateStart ( ) const

◆ dateStop()

const std::string & ModelGame::dateStop ( ) const

◆ description()

const std::string & ModelGame::description ( ) const

◆ fillFrom()

void ModelGame::fillFrom ( const nlohmann::json &  jsonGame)

◆ form()

const std::string & ModelGame::form ( ) const

◆ localId()

int ModelGame::localId ( ) const

◆ maxScore()

int ModelGame::maxScore ( ) const

◆ name()

const std::string & ModelGame::name ( ) const

◆ organizators()

const std::string & ModelGame::organizators ( ) const

◆ setDateRestart()

void ModelGame::setDateRestart ( std::string  sDateRestart)

◆ setDateStart()

void ModelGame::setDateStart ( std::string  sDateStart)

◆ setDateStop()

void ModelGame::setDateStop ( std::string  sDateStop)

◆ setDescription()

void ModelGame::setDescription ( std::string  sDescription)

◆ setForm()

void ModelGame::setForm ( std::string  sForm)

◆ setLocalId()

void ModelGame::setLocalId ( int  nLocalId)

◆ setMaxScore()

void ModelGame::setMaxScore ( int  nMaxScore)

◆ setName()

void ModelGame::setName ( std::string  sName)

◆ setOrganizators()

void ModelGame::setOrganizators ( std::string  sOrganizators)

◆ setState()

void ModelGame::setState ( const std::string &  sState)

◆ setType()

void ModelGame::setType ( std::string  sType)

◆ setUuid()

void ModelGame::setUuid ( std::string  sUuid)

◆ state()

const std::string & ModelGame::state ( ) const

◆ toJson()

nlohmann::json ModelGame::toJson ( )

◆ type()

const std::string & ModelGame::type ( ) const

◆ uuid()

const std::string & ModelGame::uuid ( ) const

Member Data Documentation

◆ m_nLocalId

int ModelGame::m_nLocalId
private

◆ m_nMaxScore

int ModelGame::m_nMaxScore
private

◆ m_pValidatorGameForm

ValidatorGameForm* ModelGame::m_pValidatorGameForm
private

◆ m_pValidatorGameState

ValidatorGameState* ModelGame::m_pValidatorGameState
private

◆ m_pValidatorGameType

ValidatorGameType* ModelGame::m_pValidatorGameType
private

◆ m_sDateRestart

std::string ModelGame::m_sDateRestart
private

◆ m_sDateStart

std::string ModelGame::m_sDateStart
private

◆ m_sDateStop

std::string ModelGame::m_sDateStop
private

◆ m_sDescription

std::string ModelGame::m_sDescription
private

◆ m_sForm

std::string ModelGame::m_sForm
private

◆ m_sName

std::string ModelGame::m_sName
private

◆ m_sOrganizators

std::string ModelGame::m_sOrganizators
private

◆ m_sState

std::string ModelGame::m_sState
private

◆ m_sType

std::string ModelGame::m_sType
private

◆ m_sUuid

std::string ModelGame::m_sUuid
private

◆ TAG

std::string ModelGame::TAG
private

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