28#include <boost/json.hpp>
72 std::filesystem::path m_path;
A base class for json data files.
Definition datafilebase.h:37
DataFileBase(const std::string &key, const std::string &appName)
Constructs a DataFileBase, loading the file from disk.
const std::string & getKey() const
Events::Event< Events::EventArgs > & saved()
Gets the Saved event.
boost::json::object m_json
Definition datafilebase.h:68
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