1 #ifndef AL_PRESETMAPPER_H
2 #define AL_PRESETMAPPER_H
49 #include "al/io/al_File.hpp"
50 #include "al/protocol/al_OSC.hpp"
51 #include "al/ui/al_PresetHandler.hpp"
80 : mFindAutomatically(findAutomatically) {}
86 bool archive(std::string mapName =
"default",
bool overwrite =
true);
88 bool load(std::string mapName);
93 bool restore(std::string mapName =
"default",
bool overwrite =
true,
94 bool autoCreate =
false);
102 registerPresetHandler(handler);
108 std::string rootOSCPath)
override;
111 void findPresetMaps();
112 void readEntries(std::string path);
114 bool mFindAutomatically;
The PresetHandler class handles sorting and recalling of presets.
The PresetMapper class allows archiving and recalling preset maps.
std::vector< std::string > listAvailableMaps(bool listArchives=true)
virtual bool consumeMessage(osc::Message &m, std::string rootOSCPath) override
Returns true if message was consumed by this class.
bool restore(std::string mapName="default", bool overwrite=true, bool autoCreate=false)