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
EmployLeaks Class Reference

#include <employ_leaks.h>

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

Public Member Functions

 EmployLeaks ()
 
virtual bool init ()
 
virtual bool deinit ()
 
int addLeak (ModelLeak *pModelLeak, std::string &sError)
 
const ModelLeakfindLeakByUuid (std::string sUuid)
 
int removeLeak (std::string sUuid)
 
int updateLeak (ModelLeak *pModelLeak)
 
nlohmann::json toJson ()
 
- 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< ModelLeak * > m_vectCacheLeaks
 
std::map< std::string, ModelLeak * > m_mapCacheLeaks
 

Constructor & Destructor Documentation

◆ EmployLeaks()

EmployLeaks::EmployLeaks ( )

Member Function Documentation

◆ addLeak()

int EmployLeaks::addLeak ( ModelLeak pModelLeak,
std::string &  sError 
)

◆ deinit()

bool EmployLeaks::deinit ( )
virtual

Implements WsjcppEmployBase.

◆ findLeakByUuid()

const ModelLeak * EmployLeaks::findLeakByUuid ( std::string  sUuid)

◆ init()

bool EmployLeaks::init ( )
virtual

Implements WsjcppEmployBase.

◆ name()

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

◆ removeLeak()

int EmployLeaks::removeLeak ( std::string  sUuid)

◆ toJson()

nlohmann::json EmployLeaks::toJson ( )

◆ updateLeak()

int EmployLeaks::updateLeak ( ModelLeak pModelLeak)

Member Data Documentation

◆ m_mapCacheLeaks

std::map<std::string, ModelLeak*> EmployLeaks::m_mapCacheLeaks
private

◆ m_vectCacheLeaks

std::vector<ModelLeak*> EmployLeaks::m_vectCacheLeaks
private

◆ TAG

std::string EmployLeaks::TAG
private

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