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

CP_ConsoleWindow Class Reference

A singleton class to handle console like output to a window. More...

Inheritance diagram for CP_ConsoleWindow:

CP_NoCopy List of all members.

Public Member Functions

Constructor / Destructor
 CP_ConsoleWindow ()
 Constructor.
virtual ~CP_ConsoleWindow ()
 Destructor.
Appearance
void ShowWindow (const CP_Rect &inBounds)
Output
void printf (const char *formatString)

Static Public Member Functions

Instance
static CP_ConsoleWindowInstance ()

Protected Attributes

OSWindow fOutputWindow
OSControl fOutputWindowTextControl

Static Protected Attributes

static CP_ConsoleWindowfsInstance = NULL

Private Member Functions

Initialization
void Init ()

Detailed Description

This class provides a way to output debugging messages to a wain that will work on all supported platforms.


Constructor & Destructor Documentation

CP_ConsoleWindow::CP_ConsoleWindow  ) 
 

Constructor.

Exceptions:
none 

CP_ConsoleWindow::~CP_ConsoleWindow  )  [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

CP_ConsoleWindow * CP_ConsoleWindow::Instance  )  [static]
 

Returns a pointer to the single instance of this class.

Exceptions:
none 
Returns:
CP_ConsoleWindow * Points to the single instance of this class.

void CP_ConsoleWindow::ShowWindow const CP_Rect inBounds  ) 
 

Create and show the window at the passed in coordinates.

Parameters:
inBounds Bounds to create our window at.
Exceptions:
OSError/NULL exceptions.
Returns:
void

void CP_ConsoleWindow::printf const char *  formatString  ) 
 

Provides std printf like output to our window.

Parameters:
buffer Buffer to write out.
Exceptions:
none 
Returns:
void

void CP_ConsoleWindow::Init  )  [private]
 

Finish initializing this object.

Exceptions:
none 
Returns:
void


Member Data Documentation

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

OSWindow CP_ConsoleWindow::fOutputWindow [protected]
 

Single instance of this class.

OSControl CP_ConsoleWindow::fOutputWindowTextControl [protected]
 

Platforms OSWindow for output.


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