#include <Choices.h>
Collaboration diagram for TSE3::App::ChoicesManager:
Public Member Functions | |
ChoicesManager () | |
~ChoicesManager () | |
void | add (ChoiceHandler *ch) |
void | remove (ChoiceHandler *ch) |
void | save (const std::string &filename) |
void | load (const std::string &filename) |
This class provides a mechanism for saving 'choices'. These are the configuration aspects of any objects in the TSE3 sequencer application.
It employs the singleton design pattern.
The format of a choices file is the blocked TSE3MDL format.
|
|
|
|
|
Add a new ChoiceHandler to the manager. This ties the object's lifecycle to the ChoicesManager; if it is not removed then the destruction of this object will bring about the destruction of the added ChoiceHandler. |
|
Remove the ChoiceHandler from the manager. The ChoiceHandler's life is not tied to the manager's any more. |
|
This method steps through each ChoiceHandler registered and requests that it saves it's choices in the appropriate file format. |
|
This method reads and interprets the given choices file. It reads each block and then intructs the appropriate ChoiceHandler to perform the necessary settings based on it. If the file doesn't exist then no error is thrown. |