1 #ifndef INCLUDE_PERSISTENTCONFIG_HPP
2 #define INCLUDE_PERSISTENTCONFIG_HPP
9 #include "al/io/al_File.hpp"
10 #include "al/io/al_Toml.hpp"
11 #include "al/ui/al_Parameter.hpp"
26 void registerDouble(std::string name,
double *value);
28 void registerInt(std::string name, int64_t *value);
30 void registerString(std::string name, std::string *value);
50 std::string mAppName{
"app"};
51 std::vector<std::pair<std::string, double *>> mDoubles;
52 std::vector<std::pair<std::string, int64_t *>> mInts;
53 std::vector<std::pair<std::string, std::string *>> mStrings;
55 std::vector<Parameter *> mParameters;
56 std::vector<ParameterInt *> mParameterInts;
57 std::vector<ParameterString *> mParameterStrings;
58 std::vector<ParameterColor *> mParameterColors;
The PersistentConfig class allows easy sotrage of persisitent values.
void setAppName(std::string appName)
Set name of app. This determines the file name for the config file.