libnick 2024.12.0
A cross-platform base for native Nickvision applications.
|
A manager of data files for an application. More...
#include <datafilemanager.h>
Public Member Functions | |
DataFileManager (const std::string &appName) | |
Constructs a DataFileManager. | |
DataFileManager (const DataFileManager &)=delete | |
DataFileManager (DataFileManager &&)=delete | |
void | operator= (const DataFileManager &)=delete |
void | operator= (DataFileManager &&)=delete |
template<DerivedDataFileBase T> | |
T & | get (const std::string &key) |
Gets a data object. | |
A manager of data files for an application.
Nickvision::App::DataFileManager::DataFileManager | ( | const std::string & | appName | ) |
Constructs a DataFileManager.
appName | The name of the application (used in determining the path to store data files on disk) |
|
delete |
|
delete |
|
inline |
Gets a data object.
T | Derived type of DataFileBase |
key | The key of the data file |
std::invalid_argument | Thrown if key is empty |
|
delete |
|
delete |