cgma
DefaultCubitMessageHandler Struct Reference
Inheritance diagram for DefaultCubitMessageHandler:
CubitMessageHandler

List of all members.

Public Member Functions

void print_message (const char *message)
void print_error (const char *message)

Detailed Description

Definition at line 33 of file CubitMessage.cpp.


Member Function Documentation

void DefaultCubitMessageHandler::print_error ( const char *  message) [inline, virtual]

Implements CubitMessageHandler.

Definition at line 40 of file CubitMessage.cpp.

  {
#ifdef XTERM
    char esc = 0x1B;
    // Turn on reverse video on VT102 (xterm also)
    // (0=normal, 1-bold, 4-underscore, 5-blink, 7-inverse)
    std::cout << esc << '[' << '7' << 'm';
#endif

    std::cout << message;
    std::cout.flush();

#ifdef XTERM
    std::cout << esc << '[' << '0' << 'm';
    std::cout.flush();
#endif

  }
void DefaultCubitMessageHandler::print_message ( const char *  message) [inline, virtual]

Implements CubitMessageHandler.

Definition at line 35 of file CubitMessage.cpp.

  {
    std::cout << message;
    std::cout.flush();
  }

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines