Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_DebugMenuManager Class Reference

A singleton classs to manage the Debug menu in a CPLAT application. More...

Inheritance diagram for CP_DebugMenuManager:

CP_NoCopy List of all members.

Public Member Functions

Constructor / Destructor
 CP_DebugMenuManager ()
 Constructor.
virtual ~CP_DebugMenuManager ()
 Destructor.
Menu
void LoadMenu (CP_MenuBar *inCurrentMenuBar)
Commands
OSStatus HandleShowMessageCommand ()

Static Public Member Functions

Instance
static CP_DebugMenuManagerInstance ()

Protected Attributes

CP_MenufDebugMenu

Static Protected Attributes

static CP_DebugMenuManagerfsInstance = NULL

Private Member Functions

Initialization
void Init ()

Detailed Description

This class manages a debug menu in your application, and provides methods to assist in debuging CPLAT applications.


Constructor & Destructor Documentation

CP_DebugMenuManager::CP_DebugMenuManager  ) 
 

Constructor.

Exceptions:
none 

CP_DebugMenuManager::~CP_DebugMenuManager  )  [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

CP_DebugMenuManager * CP_DebugMenuManager::Instance  )  [static]
 

Returns the single instance of this class.

Exceptions:
none 
Returns:
CP_DebugMenuManager * Returns the single instance of this class.

void CP_DebugMenuManager::LoadMenu CP_MenuBar inCurrentMenuBar  ) 
 

Loads the debug menu, and appends to the end of the passed in menu bar.

Parameters:
inMenuBar CP_MenuBar to append this menu to.
Exceptions:
none 
Returns:
void

OSStatus CP_DebugMenuManager::HandleShowMessageCommand  ) 
 

Called when the user selects the Show Message commmand from the debug menu.

Exceptions:
none 
Returns:
OSStatus Returns CP_noErr indicating the command was handled.

void CP_DebugMenuManager::Init  )  [private]
 

Finish initializing this class

Exceptions:
none 
Returns:
void


Member Data Documentation

CPLAT_Begin_Namespace_CPLAT CP_DebugMenuManager * CP_DebugMenuManager::fsInstance = NULL [static, protected]
 

CP_Menu* CP_DebugMenuManager::fDebugMenu [protected]
 

The single instance of this class.


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:01:28 2005 for CPLAT by  doxygen 1.4.0