28#include <boost/json.hpp>
47 DataFileBase(
const std::string& key,
const std::string& appName,
bool isPortable);
73 std::filesystem::path m_path;
const std::string & getKey() const
Events::Event< Events::EventArgs > & saved()
Gets the Saved event.
DataFileBase(const std::string &key, const std::string &appName, bool isPortable)
Constructs a DataFileBase, loading the file from disk.
boost::json::object m_json
Definition datafilebase.h:69
virtual ~DataFileBase()=default
Destructs a DataFileBase.
bool save()
Saves the config file to disk.
An event that can have handlers subscribe to it, which in turn will be called when the event is invok...
Definition event.h:49