comparison presetManager.h @ 16:2da0350a4aa2

expMessageOrganiser and express/explore view setup.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Tue, 21 Oct 2014 18:06:44 +0100
parents ab3e0e980c82
children 2a7320a8cbed
comparison
equal deleted inserted replaced
15:e439bf85b665 16:2da0350a4aa2
139 vector<int> recallPreset(string name); 139 vector<int> recallPreset(string name);
140 void startLoadAll(); // load everything from the json file 140 void startLoadAll(); // load everything from the json file
141 void exitAndSaveAll(); // save stuff to the json file 141 void exitAndSaveAll(); // save stuff to the json file
142 void printAll(); 142 void printAll();
143 void clearAll(); 143 void clearAll();
144
145 Preset* getPresetAtIndex(int index){
146
147 if (index >= thePresets.size()){
148 cout << "ERROR: index " << index << " exceeds number of presets " << thePresets.size() << endl;
149 return NULL;
150 }else{
151 return thePresets[index];
152
153 }
154 };
144 protected: 155 protected:
145 string presetFileName; 156 string presetFileName;
146 int nextID; 157 int nextID;
147 int timesOpened; 158 int timesOpened;
148 bool presetAlertShowing; 159 bool presetAlertShowing;