StreamDecorator Namespace Reference


Detailed Description

Set of common stuff to work with streams. (colored console output, etc.).


Classes

class  Color
 Console output color manipulator. More...
class  Error
 streamable error object More...

Enumerations

enum  EColor {
  C_NO_COLOR = 0, C_BLUE, C_GREEN, C_CYAN,
  C_RED, C_PURPLE, C_BROWN, C_LIGHT_GRAY,
  C_DARK_GRAY, C_LIGHT_BLUE, C_LIGHT_GREEN, C_LIGHT_CYAN,
  C_LIGHT_RED, C_LIGHT_PURPLE, C_YELLOW, C_WHITE
}
 Console ouput colors enumeration. Zero means default color. More...
enum  EError { E_NO_ERROR = 0, E_ERROR, E_WARNING, E_NOTE }
 error types enumeration More...

Functions

std::ostream & operator<< (std::ostream &, const Color &)
 This behaves as standard stream manipulators.
std::ostream & operator<< (std::ostream &, const Error &)
 print error to stream (no new lines)


Enumeration Type Documentation

enum EColor

Console ouput colors enumeration. Zero means default color.

Enumerator:
C_NO_COLOR 
C_BLUE 
C_GREEN 
C_CYAN 
C_RED 
C_PURPLE 
C_BROWN 
C_LIGHT_GRAY 
C_DARK_GRAY 
C_LIGHT_BLUE 
C_LIGHT_GREEN 
C_LIGHT_CYAN 
C_LIGHT_RED 
C_LIGHT_PURPLE 
C_YELLOW 
C_WHITE 

Definition at line 37 of file vypIO.h.

enum EError

error types enumeration

Enumerator:
E_NO_ERROR  should be not used
E_ERROR  error
E_WARNING  warning
E_NOTE  some extra info

Definition at line 89 of file vypIO.h.


Function Documentation

std::ostream & operator<< ( std::ostream &  str,
const Error &  err 
)

print error to stream (no new lines)

Definition at line 118 of file vypIO.cc.

References C_LIGHT_BLUE, C_LIGHT_CYAN, C_LIGHT_GREEN, C_LIGHT_RED, C_NO_COLOR, C_YELLOW, Error::Private::category, Error::d, E_ERROR, E_NOTE, E_WARNING, ETOKEN_NULL, Error::Private::file, Error::Private::lineno, Error::Private::msg, Error::Private::token, Token::type, and Error::Private::type.

std::ostream & operator<< ( std::ostream &  stream,
const Color &  cObj 
)

This behaves as standard stream manipulators.

Definition at line 56 of file vypIO.cc.

References C_BLUE, C_BROWN, C_CYAN, C_DARK_GRAY, C_GREEN, C_LIGHT_BLUE, C_LIGHT_CYAN, C_LIGHT_GRAY, C_LIGHT_GREEN, C_LIGHT_PURPLE, C_LIGHT_RED, C_NO_COLOR, C_PURPLE, C_RED, C_WHITE, C_YELLOW, Color::Private::color, Color::d, and Color::useColors.


Generated on Sat Jul 4 18:33:22 2009 for vyp08 (compiler and interpreter of VYP08 language) by  doxygen 1.5.4