CArchConsoleUnix Class Reference

Unix implementation of IArchConsole. More...

#include <CArchConsoleUnix.h>

Inherits IArchConsole.

Inheritance diagram for CArchConsoleUnix:

Inheritance graph
[legend]
Collaboration diagram for CArchConsoleUnix:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CArchConsoleUnix (void *)
virtual ~CArchConsoleUnix ()
virtual void openConsole (const char *title)
 Open the console.
virtual void closeConsole ()
 Close the console.
virtual void showConsole (bool)
 Show the console.
virtual void writeConsole (const char *)
 Write to the console.
virtual const char * getNewlineForConsole ()
 Returns the newline sequence for the console.

Detailed Description

Unix implementation of IArchConsole.

Definition at line 23 of file CArchConsoleUnix.h.


Member Function Documentation

void CArchConsoleUnix::closeConsole (  )  [virtual]

Close the console.

Close the console. Calling this method on an already closed console must have no effect.

Implements IArchConsole.

Definition at line 40 of file CArchConsoleUnix.cpp.

const char * CArchConsoleUnix::getNewlineForConsole (  )  [virtual]

Returns the newline sequence for the console.

Different consoles use different character sequences for newlines. This method returns the appropriate newline sequence for the console.

Implements IArchConsole.

Definition at line 58 of file CArchConsoleUnix.cpp.

void CArchConsoleUnix::openConsole ( const char *  title  )  [virtual]

Open the console.

Opens the console for writing. The console is opened automatically on the first write so calling this method is optional. Uses title for the console's title if appropriate for the architecture. Calling this method on an already open console must have no effect.

Implements IArchConsole.

Definition at line 34 of file CArchConsoleUnix.cpp.

void CArchConsoleUnix::showConsole ( bool   )  [virtual]

Show the console.

Causes the console to become visible. This generally only makes sense for a console in a graphical user interface. Other implementations will do nothing. Iff showIfEmpty is false then the implementation may optionally only show the console if it's not empty.

Implements IArchConsole.

Definition at line 46 of file CArchConsoleUnix.cpp.

void CArchConsoleUnix::writeConsole ( const char *   )  [virtual]

Write to the console.

Writes the given string to the console, opening it if necessary.

Implements IArchConsole.

Definition at line 52 of file CArchConsoleUnix.cpp.


The documentation for this class was generated from the following files:
Generated on Fri Nov 6 00:18:50 2009 for synergy-plus by  doxygen 1.4.7