Mercurial > hg > tweakathon2ios
diff 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 |
line wrap: on
line diff
--- a/presetManager.h Tue Oct 21 16:52:56 2014 +0100 +++ b/presetManager.h Tue Oct 21 18:06:44 2014 +0100 @@ -141,6 +141,17 @@ void exitAndSaveAll(); // save stuff to the json file void printAll(); void clearAll(); + + Preset* getPresetAtIndex(int index){ + + if (index >= thePresets.size()){ + cout << "ERROR: index " << index << " exceeds number of presets " << thePresets.size() << endl; + return NULL; + }else{ + return thePresets[index]; + + } + }; protected: string presetFileName; int nextID;