Mercurial > hg > soniczoomios
comparison presetManager.mm @ 32:ab7c86d0f3d8
V0.3 SZBeta sent out. bristol tests.
| author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
|---|---|
| date | Fri, 08 Mar 2013 14:54:55 +0000 |
| parents | 23ef179c3748 |
| children | 790939017078 |
comparison
equal
deleted
inserted
replaced
| 31:23ef179c3748 | 32:ab7c86d0f3d8 |
|---|---|
| 262 | 262 |
| 263 cout << root; | 263 cout << root; |
| 264 presetFile << root; | 264 presetFile << root; |
| 265 | 265 |
| 266 } | 266 } |
| 267 | 267 //--------------------------------------------------------------------------- |
| 268 void PresetManager::saveSessionToFile(string userName){ // for supervised newUser() | |
| 269 ofFile presetFile(ofxiPhoneGetDocumentsDirectory() + userName + '_' + PRESET_FILENAME,ofFile::WriteOnly); | |
| 270 | |
| 271 // stick all the stuff in a json value | |
| 272 Json::Value root = allPresetsToJson(); | |
| 273 | |
| 274 cout << root; | |
| 275 presetFile << root; | |
| 276 | |
| 277 } | |
| 268 //--------------------------------------------------------------------------- | 278 //--------------------------------------------------------------------------- |
| 269 void PresetManager::clearAll(){ | 279 void PresetManager::clearAll(){ |
| 270 thePresets.clear(); | 280 thePresets.clear(); |
| 271 } | 281 } |
| 272 //--------------------------------------------------------------------------- | 282 //--------------------------------------------------------------------------- |
