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

#include <wsjcpp_storages.h>

Static Public Member Functions

static std::vector< WsjcppStorageUpdateBase * > getSortedStorageUpdates ()
 
static void initGlobalVariables ()
 
static WsjcppStorageUpdateBasefindUpdateFromVersion (const std::string &sFromVersion)
 
static WsjcppStorageUpdateBasefindUpdateVersion (const std::string &sVersion)
 
static bool apply2 (WsjcppStorage *pStorage)
 

Static Private Member Functions

static int calculateWeight (int nWeight, const std::string &sVersion)
 
static void sortByWeight (std::vector< WsjcppStorageUpdateBase *> &vUpdates)
 
static std::vector< WsjcppStorageUpdateBase * > findUpdatesFromVersion (const std::string &sVersion)
 
static void pushUpdatesFromVersion (std::vector< WsjcppStorageUpdateBase *> &vUpdates, const std::string &sVersion)
 
static void applyAllStorageChanges (WsjcppStorage *pStorage, WsjcppStorageUpdateBase *pUpdate)
 
static void executeAllStorageChanges (WsjcppStorage *pStorage, WsjcppStorageConnection *pConn, WsjcppStorageUpdateBase *pUpdate)
 

Member Function Documentation

◆ apply2()

bool WsjcppStorageUpdates::apply2 ( WsjcppStorage pStorage)
static

◆ applyAllStorageChanges()

void WsjcppStorageUpdates::applyAllStorageChanges ( WsjcppStorage pStorage,
WsjcppStorageUpdateBase pUpdate 
)
staticprivate

◆ calculateWeight()

int WsjcppStorageUpdates::calculateWeight ( int  nWeight,
const std::string &  sVersion 
)
staticprivate

◆ executeAllStorageChanges()

void WsjcppStorageUpdates::executeAllStorageChanges ( WsjcppStorage pStorage,
WsjcppStorageConnection pConn,
WsjcppStorageUpdateBase pUpdate 
)
staticprivate

◆ findUpdateFromVersion()

WsjcppStorageUpdateBase * WsjcppStorageUpdates::findUpdateFromVersion ( const std::string &  sFromVersion)
static

◆ findUpdatesFromVersion()

std::vector< WsjcppStorageUpdateBase * > WsjcppStorageUpdates::findUpdatesFromVersion ( const std::string &  sVersion)
staticprivate

◆ findUpdateVersion()

WsjcppStorageUpdateBase * WsjcppStorageUpdates::findUpdateVersion ( const std::string &  sVersion)
static

◆ getSortedStorageUpdates()

std::vector< WsjcppStorageUpdateBase * > WsjcppStorageUpdates::getSortedStorageUpdates ( )
static

◆ initGlobalVariables()

void WsjcppStorageUpdates::initGlobalVariables ( )
static

◆ pushUpdatesFromVersion()

void WsjcppStorageUpdates::pushUpdatesFromVersion ( std::vector< WsjcppStorageUpdateBase *> &  vUpdates,
const std::string &  sVersion 
)
staticprivate

◆ sortByWeight()

void WsjcppStorageUpdates::sortByWeight ( std::vector< WsjcppStorageUpdateBase *> &  vUpdates)
staticprivate

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