lab_heaps
Precarious Priority Queues
colored_out Class Reference
Collaboration diagram for colored_out:
[legend]

Public Types

enum  enable_t { DISABLE, ENABLE, TTY, COUT }
 

Public Member Functions

int set_expected_file (const std::string &str)
 
int set_expected (const std::string &str)
 
int start ()
 

Static Public Member Functions

template<typename T >
static void output_red (T c)
 
template<typename T >
static void output_green (T c)
 
template<typename T >
static void output_notfound (T c)
 
template<typename T >
static void output_bold (T c, std::ostream &out=std::cout, enable_t enable=COUT)
 
static void output_bold_digits (std::string str, std::ostream &out=std::cout, enable_t enable=COUT)
 

Static Public Attributes

static const char BORDER_CHAR = '~'
 

Protected Member Functions

char get_next_char ()
 
bool check_opcode (char c)
 

Static Protected Member Functions

static bool is_enabled (const std::ostream &out, enable_t e)
 

Protected Attributes

int fds [2]
 
std::string expected
 
bool sendnullchar
 

Static Protected Attributes

static const bool was_originally_tty = isatty(STDOUT_FILENO)
 
static const int READ_END = 0
 
static const int WRITE_END = 1
 

The documentation for this class was generated from the following files: