Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

TSE3::App::ChoicesManager Class Reference

Choices file saving management. More...

#include <Choices.h>

Collaboration diagram for TSE3::App::ChoicesManager:

Collaboration graph
[legend]
List of all members.

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)

Detailed Description

Choices file saving management.

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.

Author:
Pete Goodliffe
Version:
1.00
See also:
TSE3


Constructor & Destructor Documentation

TSE3::App::ChoicesManager::ChoicesManager  ) 
 

TSE3::App::ChoicesManager::~ChoicesManager  ) 
 


Member Function Documentation

void TSE3::App::ChoicesManager::add ChoiceHandler ch  )  [inline]
 

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.

void TSE3::App::ChoicesManager::remove ChoiceHandler ch  )  [inline]
 

Remove the ChoiceHandler from the manager. The ChoiceHandler's life is not tied to the manager's any more.

void TSE3::App::ChoicesManager::save const std::string &  filename  ) 
 

This method steps through each ChoiceHandler registered and requests that it saves it's choices in the appropriate file format.

void TSE3::App::ChoicesManager::load const std::string &  filename  ) 
 

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.


The documentation for this class was generated from the following file:
Generated on Wed May 25 14:47:15 2005 for TSE3 by doxygen 1.3.2