#include <database-files.h>
◆ ModStorageDatabaseFiles()
ModStorageDatabaseFiles::ModStorageDatabaseFiles |
( |
const std::string & | savedir | ) |
|
◆ ~ModStorageDatabaseFiles()
virtual ModStorageDatabaseFiles::~ModStorageDatabaseFiles |
( |
| ) |
|
|
virtualdefault |
◆ beginSave()
void ModStorageDatabaseFiles::beginSave |
( |
| ) |
|
|
virtual |
◆ endSave()
void ModStorageDatabaseFiles::endSave |
( |
| ) |
|
|
virtual |
◆ getModEntries()
void ModStorageDatabaseFiles::getModEntries |
( |
const std::string & | modname, |
|
|
StringMap * | storage ) |
|
virtual |
◆ getModEntry()
bool ModStorageDatabaseFiles::getModEntry |
( |
const std::string & | modname, |
|
|
const std::string & | key, |
|
|
std::string * | value ) |
|
virtual |
◆ getModKeys()
void ModStorageDatabaseFiles::getModKeys |
( |
const std::string & | modname, |
|
|
std::vector< std::string > * | storage ) |
|
virtual |
◆ getOrCreateJson()
Json::Value * ModStorageDatabaseFiles::getOrCreateJson |
( |
const std::string & | modname | ) |
|
|
private |
References DIR_DELIM, errorstream, m_mod_storage, m_storage_dir, open_ifstream(), and fs::PathExists().
Referenced by getModEntries(), getModEntry(), getModKeys(), hasModEntry(), removeModEntries(), removeModEntry(), and setModEntry().
◆ hasModEntry()
bool ModStorageDatabaseFiles::hasModEntry |
( |
const std::string & | modname, |
|
|
const std::string & | key ) |
|
virtual |
◆ listMods()
void ModStorageDatabaseFiles::listMods |
( |
std::vector< std::string > * | res | ) |
|
|
virtual |
◆ removeModEntries()
bool ModStorageDatabaseFiles::removeModEntries |
( |
const std::string & | modname | ) |
|
|
virtual |
◆ removeModEntry()
bool ModStorageDatabaseFiles::removeModEntry |
( |
const std::string & | modname, |
|
|
const std::string & | key ) |
|
virtual |
◆ setModEntry()
bool ModStorageDatabaseFiles::setModEntry |
( |
const std::string & | modname, |
|
|
const std::string & | key, |
|
|
std::string_view | value ) |
|
virtual |
◆ m_mod_storage
std::unordered_map<std::string, Json::Value> ModStorageDatabaseFiles::m_mod_storage |
|
private |
◆ m_modified
std::unordered_set<std::string> ModStorageDatabaseFiles::m_modified |
|
private |
◆ m_storage_dir
std::string ModStorageDatabaseFiles::m_storage_dir |
|
private |
The documentation for this class was generated from the following files: