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

#include <employees.h>

Public Member Functions

 WsjcppSettingItem (const std::string &sSettingGroup, const std::string &sSettingName)
 
WsjcppSettingIteminFile ()
 
WsjcppSettingIteminDatabase ()
 
WsjcppSettingIteminRuntime ()
 
WsjcppSettingItemreadonly ()
 
WsjcppSettingItemstring (const std::string &sDefaultStringValue)
 
WsjcppSettingItempassword (const std::string &sDefaultPasswordValue)
 
WsjcppSettingItemdirPath (const std::string &sDefaultDirPathValue)
 
WsjcppSettingItemfilePath (const std::string &sDefaultFilePathValue)
 
WsjcppSettingItemtext (const std::string &sDefaultTextValue)
 
WsjcppSettingItemnumber (int nDefaultNumberValue)
 
WsjcppSettingItemboolean (bool bDefaultBooleanValue)
 
WsjcppSettingItemjson ()
 
WsjcppSettingItemlist ()
 
void checkWithThrow () const
 
bool isInited () const
 
bool isReadonly () const
 
std::string getName () const
 
std::string getGroupName () const
 
bool isFromFile () const
 
bool isFromDatabase () const
 
bool isFromRuntime () const
 
bool isString () const
 
bool isPassword () const
 
bool isDirPath () const
 
bool isFilePath () const
 
bool isText () const
 
bool isNumber () const
 
bool isBoolean () const
 
bool isJson () const
 
bool isList () const
 
bool isLikeString () const
 
std::string getDefaultStringValue () const
 
std::string getStringValue () const
 
void setStringValue (const std::string &sStringValue)
 
std::string getDefaultPasswordValue () const
 
std::string getPasswordValue () const
 
void setPasswordValue (const std::string &sPasswordValue)
 
std::string getDefaultDirPathValue () const
 
std::string getDirPathValue () const
 
void setDirPathValue (const std::string &sDirPathValue)
 
std::string getDefaultFilePathValue () const
 
std::string getFilePathValue () const
 
void setFilePathValue (const std::string &sFilePathValue)
 
std::string getDefaultTextValue () const
 
std::string getTextValue () const
 
void setTextValue (const std::string &sTextValue)
 
int getDefaultNumberValue () const
 
int getNumberValue () const
 
void setNumberValue (int nNumberValue)
 
bool getDefaultBooleanValue () const
 
bool getBooleanValue () const
 
void setBooleanValue (bool bBooleanValue)
 
nlohmann::json toJson (bool bHidePassword)
 
std::string convertValueToString (bool bHidePassword) const
 
std::string convertTypeToString () const
 

Private Attributes

std::string TAG
 
std::string m_sSettingName
 
std::string m_sSettingGroup
 
bool m_bReadonly
 
WsjcppSettingStorageType m_nStorageType
 
std::string m_sStorageType
 
WsjcppSettingDataType m_nSettingType
 
std::string m_sSettingType
 
bool m_bInited
 
std::string m_sDefaultStringValue
 
std::string m_sStringValue
 
std::string m_sDefaultPasswordValue
 
std::string m_sPasswordValue
 
std::string m_sDefaultDirPathValue
 
std::string m_sDirPathValue
 
std::string m_sDefaultFilePathValue
 
std::string m_sFilePathValue
 
std::string m_sDefaultTextValue
 
std::string m_sTextValue
 
int m_nDefaultNumberValue
 
int m_nNumberValue
 
bool m_bDefaultBooleanValue
 
bool m_bBooleanValue
 

Constructor & Destructor Documentation

◆ WsjcppSettingItem()

WsjcppSettingItem::WsjcppSettingItem ( const std::string &  sSettingGroup,
const std::string &  sSettingName 
)

Member Function Documentation

◆ boolean()

WsjcppSettingItem & WsjcppSettingItem::boolean ( bool  bDefaultBooleanValue)

◆ checkWithThrow()

void WsjcppSettingItem::checkWithThrow ( ) const

◆ convertTypeToString()

std::string WsjcppSettingItem::convertTypeToString ( ) const

◆ convertValueToString()

std::string WsjcppSettingItem::convertValueToString ( bool  bHidePassword) const

◆ dirPath()

WsjcppSettingItem & WsjcppSettingItem::dirPath ( const std::string &  sDefaultDirPathValue)

◆ filePath()

WsjcppSettingItem & WsjcppSettingItem::filePath ( const std::string &  sDefaultFilePathValue)

◆ getBooleanValue()

bool WsjcppSettingItem::getBooleanValue ( ) const

◆ getDefaultBooleanValue()

bool WsjcppSettingItem::getDefaultBooleanValue ( ) const

◆ getDefaultDirPathValue()

std::string WsjcppSettingItem::getDefaultDirPathValue ( ) const

◆ getDefaultFilePathValue()

std::string WsjcppSettingItem::getDefaultFilePathValue ( ) const

◆ getDefaultNumberValue()

int WsjcppSettingItem::getDefaultNumberValue ( ) const

◆ getDefaultPasswordValue()

std::string WsjcppSettingItem::getDefaultPasswordValue ( ) const

◆ getDefaultStringValue()

std::string WsjcppSettingItem::getDefaultStringValue ( ) const

◆ getDefaultTextValue()

std::string WsjcppSettingItem::getDefaultTextValue ( ) const

◆ getDirPathValue()

std::string WsjcppSettingItem::getDirPathValue ( ) const

◆ getFilePathValue()

std::string WsjcppSettingItem::getFilePathValue ( ) const

◆ getGroupName()

std::string WsjcppSettingItem::getGroupName ( ) const

◆ getName()

std::string WsjcppSettingItem::getName ( ) const

◆ getNumberValue()

int WsjcppSettingItem::getNumberValue ( ) const

◆ getPasswordValue()

std::string WsjcppSettingItem::getPasswordValue ( ) const

◆ getStringValue()

std::string WsjcppSettingItem::getStringValue ( ) const

◆ getTextValue()

std::string WsjcppSettingItem::getTextValue ( ) const

◆ inDatabase()

WsjcppSettingItem & WsjcppSettingItem::inDatabase ( )

◆ inFile()

WsjcppSettingItem & WsjcppSettingItem::inFile ( )

◆ inRuntime()

WsjcppSettingItem & WsjcppSettingItem::inRuntime ( )

◆ isBoolean()

bool WsjcppSettingItem::isBoolean ( ) const

◆ isDirPath()

bool WsjcppSettingItem::isDirPath ( ) const

◆ isFilePath()

bool WsjcppSettingItem::isFilePath ( ) const

◆ isFromDatabase()

bool WsjcppSettingItem::isFromDatabase ( ) const

◆ isFromFile()

bool WsjcppSettingItem::isFromFile ( ) const

◆ isFromRuntime()

bool WsjcppSettingItem::isFromRuntime ( ) const

◆ isInited()

bool WsjcppSettingItem::isInited ( ) const

◆ isJson()

bool WsjcppSettingItem::isJson ( ) const

◆ isLikeString()

bool WsjcppSettingItem::isLikeString ( ) const

◆ isList()

bool WsjcppSettingItem::isList ( ) const

◆ isNumber()

bool WsjcppSettingItem::isNumber ( ) const

◆ isPassword()

bool WsjcppSettingItem::isPassword ( ) const

◆ isReadonly()

bool WsjcppSettingItem::isReadonly ( ) const

◆ isString()

bool WsjcppSettingItem::isString ( ) const

◆ isText()

bool WsjcppSettingItem::isText ( ) const

◆ json()

WsjcppSettingItem & WsjcppSettingItem::json ( )

◆ list()

WsjcppSettingItem & WsjcppSettingItem::list ( )

◆ number()

WsjcppSettingItem & WsjcppSettingItem::number ( int  nDefaultNumberValue)

◆ password()

WsjcppSettingItem & WsjcppSettingItem::password ( const std::string &  sDefaultPasswordValue)

◆ readonly()

WsjcppSettingItem & WsjcppSettingItem::readonly ( )

◆ setBooleanValue()

void WsjcppSettingItem::setBooleanValue ( bool  bBooleanValue)

◆ setDirPathValue()

void WsjcppSettingItem::setDirPathValue ( const std::string &  sDirPathValue)

◆ setFilePathValue()

void WsjcppSettingItem::setFilePathValue ( const std::string &  sFilePathValue)

◆ setNumberValue()

void WsjcppSettingItem::setNumberValue ( int  nNumberValue)

◆ setPasswordValue()

void WsjcppSettingItem::setPasswordValue ( const std::string &  sPasswordValue)

◆ setStringValue()

void WsjcppSettingItem::setStringValue ( const std::string &  sStringValue)

◆ setTextValue()

void WsjcppSettingItem::setTextValue ( const std::string &  sTextValue)

◆ string()

WsjcppSettingItem & WsjcppSettingItem::string ( const std::string &  sDefaultStringValue)

◆ text()

WsjcppSettingItem & WsjcppSettingItem::text ( const std::string &  sDefaultTextValue)

◆ toJson()

nlohmann::json WsjcppSettingItem::toJson ( bool  bHidePassword)

Member Data Documentation

◆ m_bBooleanValue

bool WsjcppSettingItem::m_bBooleanValue
private

◆ m_bDefaultBooleanValue

bool WsjcppSettingItem::m_bDefaultBooleanValue
private

◆ m_bInited

bool WsjcppSettingItem::m_bInited
private

◆ m_bReadonly

bool WsjcppSettingItem::m_bReadonly
private

◆ m_nDefaultNumberValue

int WsjcppSettingItem::m_nDefaultNumberValue
private

◆ m_nNumberValue

int WsjcppSettingItem::m_nNumberValue
private

◆ m_nSettingType

WsjcppSettingDataType WsjcppSettingItem::m_nSettingType
private

◆ m_nStorageType

WsjcppSettingStorageType WsjcppSettingItem::m_nStorageType
private

◆ m_sDefaultDirPathValue

std::string WsjcppSettingItem::m_sDefaultDirPathValue
private

◆ m_sDefaultFilePathValue

std::string WsjcppSettingItem::m_sDefaultFilePathValue
private

◆ m_sDefaultPasswordValue

std::string WsjcppSettingItem::m_sDefaultPasswordValue
private

◆ m_sDefaultStringValue

std::string WsjcppSettingItem::m_sDefaultStringValue
private

◆ m_sDefaultTextValue

std::string WsjcppSettingItem::m_sDefaultTextValue
private

◆ m_sDirPathValue

std::string WsjcppSettingItem::m_sDirPathValue
private

◆ m_sFilePathValue

std::string WsjcppSettingItem::m_sFilePathValue
private

◆ m_sPasswordValue

std::string WsjcppSettingItem::m_sPasswordValue
private

◆ m_sSettingGroup

std::string WsjcppSettingItem::m_sSettingGroup
private

◆ m_sSettingName

std::string WsjcppSettingItem::m_sSettingName
private

◆ m_sSettingType

std::string WsjcppSettingItem::m_sSettingType
private

◆ m_sStorageType

std::string WsjcppSettingItem::m_sStorageType
private

◆ m_sStringValue

std::string WsjcppSettingItem::m_sStringValue
private

◆ m_sTextValue

std::string WsjcppSettingItem::m_sTextValue
private

◆ TAG

std::string WsjcppSettingItem::TAG
private

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