Color Class Reference

#include <Color.h>

List of all members.


Detailed Description

Attention:
Global variable is used inside this class.

Console output color manipulator

Definition at line 54 of file Color.h.


Public Member Functions

 Color (EColor color=C_NO_COLOR)
 
Parameters:
color Desired color of console output.

 Color (const Color &)
 ~Color ()

Static Public Member Functions

static void enable (bool)
 
Attention:
Global variable is used inside this class.

static bool isEnabled ()
 
Returns:
Returns true if color output is gloablly enabled.


Private Member Functions

Coloroperator= (const Color &)

Private Attributes

Private * d

Static Private Attributes

static bool useColors = false

Friends

std::ostream & operator<< (std::ostream &, const Color &)
 This behaves as standard stream manipulators.

Constructor & Destructor Documentation

Color ( EColor  color = C_NO_COLOR  ) 

Parameters:
color Desired color of console output.

If omitted, default color is assumed.

Definition at line 38 of file Color.cpp.

References d.

Color ( const Color cObj  ) 

Definition at line 44 of file Color.cpp.

References d.

~Color (  ) 

Definition at line 50 of file Color.cpp.

References d.


Member Function Documentation

void enable ( bool  b  )  [static]

Attention:
Global variable is used inside this class.

Enable/disable color ouput glaobally.

Definition at line 54 of file Color.cpp.

References useColors.

Referenced by main().

Here is the caller graph for this function:

bool isEnabled (  )  [static]

Returns:
Returns true if color output is gloablly enabled.

Definition at line 58 of file Color.cpp.

References useColors.

Color& operator= ( const Color  )  [private]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const Color  
) [friend]

This behaves as standard stream manipulators.

Definition at line 62 of file Color.cpp.


Member Data Documentation

bool useColors = false [static, private]

Definition at line 74 of file Color.h.

Referenced by enable(), isEnabled(), and operator<<().

Private* d [private]

Definition at line 75 of file Color.h.

Referenced by Color(), operator<<(), and ~Color().


The documentation for this class was generated from the following files:
Generated on Sat May 2 16:39:38 2009 for nucad by  doxygen 1.5.4