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 | Protected Attributes | Private Attributes | List of all members
WsjcppStorage Class Referenceabstract

#include <wsjcpp_storages.h>

Inheritance diagram for WsjcppStorage:
Inheritance graph
[legend]

Public Member Functions

 WsjcppStorage ()
 
virtual bool applyConfigFromFile (const std::string &sFilePath)=0
 
virtual WsjcppStorageConnectionconnect ()=0
 
virtual void clean ()=0
 
virtual std::string prepareStringValue (const std::string &sValue)=0
 
bool executeStorageChanges (WsjcppStorageConnection *pConn, WsjcppStorageChanges &storageChanges)
 
bool addStorageChanges (WsjcppStorageChanges &storageChanges)
 
virtual std::vector< std::string > prepareSqlQueries (const WsjcppStorageInsert &storageInsert)=0
 
virtual std::vector< std::string > prepareSqlQueries (const WsjcppStorageCreateTable &storageCreateTable)=0
 
virtual std::vector< std::string > prepareSqlQueries (const WsjcppStorageModifyTable &storageModifyTable)=0
 
virtual std::vector< std::string > prepareSqlQueries (const WsjcppStorageDropTable &storageDropTable)=0
 
bool insertRow (WsjcppStorageConnection *pConn, const WsjcppStorageInsert &storageInsert)
 
const std::map< std::string, WsjcppStorageTable > & getTables ()
 
bool existsTable (const std::string &sTableName)
 
const WsjcppStorageTablegetTableDef (const std::string &sTableName)
 

Static Public Member Functions

static std::string type ()
 

Protected Attributes

std::string TAG
 

Private Attributes

std::map< std::string, WsjcppStorageTablem_mapTables
 

Constructor & Destructor Documentation

◆ WsjcppStorage()

WsjcppStorage::WsjcppStorage ( )

Member Function Documentation

◆ addStorageChanges()

bool WsjcppStorage::addStorageChanges ( WsjcppStorageChanges storageChanges)

◆ applyConfigFromFile()

virtual bool WsjcppStorage::applyConfigFromFile ( const std::string &  sFilePath)
pure virtual

Implemented in FakeStorage, and MySqlStorage.

◆ clean()

virtual void WsjcppStorage::clean ( )
pure virtual

Implemented in FakeStorage, and MySqlStorage.

◆ connect()

virtual WsjcppStorageConnection* WsjcppStorage::connect ( )
pure virtual

Implemented in FakeStorage, and MySqlStorage.

◆ executeStorageChanges()

bool WsjcppStorage::executeStorageChanges ( WsjcppStorageConnection pConn,
WsjcppStorageChanges storageChanges 
)

◆ existsTable()

bool WsjcppStorage::existsTable ( const std::string &  sTableName)

◆ getTableDef()

const WsjcppStorageTable & WsjcppStorage::getTableDef ( const std::string &  sTableName)

◆ getTables()

const std::map< std::string, WsjcppStorageTable > & WsjcppStorage::getTables ( )

◆ insertRow()

bool WsjcppStorage::insertRow ( WsjcppStorageConnection pConn,
const WsjcppStorageInsert storageInsert 
)

◆ prepareSqlQueries() [1/4]

virtual std::vector<std::string> WsjcppStorage::prepareSqlQueries ( const WsjcppStorageInsert storageInsert)
pure virtual

Implemented in FakeStorage, and MySqlStorage.

◆ prepareSqlQueries() [2/4]

virtual std::vector<std::string> WsjcppStorage::prepareSqlQueries ( const WsjcppStorageCreateTable storageCreateTable)
pure virtual

Implemented in FakeStorage, and MySqlStorage.

◆ prepareSqlQueries() [3/4]

virtual std::vector<std::string> WsjcppStorage::prepareSqlQueries ( const WsjcppStorageModifyTable storageModifyTable)
pure virtual

Implemented in FakeStorage, and MySqlStorage.

◆ prepareSqlQueries() [4/4]

virtual std::vector<std::string> WsjcppStorage::prepareSqlQueries ( const WsjcppStorageDropTable storageDropTable)
pure virtual

Implemented in FakeStorage, and MySqlStorage.

◆ prepareStringValue()

virtual std::string WsjcppStorage::prepareStringValue ( const std::string &  sValue)
pure virtual

Implemented in FakeStorage, and MySqlStorage.

◆ type()

static std::string WsjcppStorage::type ( )
inlinestatic

Member Data Documentation

◆ m_mapTables

std::map<std::string, WsjcppStorageTable> WsjcppStorage::m_mapTables
private

◆ TAG

std::string WsjcppStorage::TAG
protected

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