Note: Goby version 1 (shown here) is now considered obsolete. Please use version 2 for new projects, and consider upgrading old projects.

Goby Underwater Autonomy Project  Series: 1.1, revision: 163, released on 2013-02-06 14:23:27 -0500
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions
goby::util::FlexOStreamBuf Class Reference

Class derived from std::stringbuf that allows us to insert things before the stream and control output. This is the string buffer used by goby::util::FlexOstream for the Goby Logger (glogger) More...

#include <util/liblogger/flex_ostreambuf.h>

Inherits streambuf.

List of all members.

Public Member Functions

int sync ()
 virtual inherited from std::streambuf. Called when std::endl or std::flush is inserted into the stream
int overflow (int c=EOF)
 virtual inherited from std::streambuf. Called when something is inserted into the stream
void name (const std::string &s)
 name of the application being served
void add_stream (Logger::Verbosity verbosity, std::ostream *os)
 add a stream to the logger
bool is_quiet ()
 do all attached streams have Verbosity == quiet?
bool is_gui ()
 is there an attached stream with Verbosity == gui (ncurses GUI)
void group_name (const std::string &s)
 current group name (last insertion of group("") into the stream)
void set_die_flag (bool b)
 exit on error at the next call to sync()
void set_debug_flag (bool b)
 label stream contents as "debug" until the next call to sync()
void set_warn_flag (bool b)
 label stream contents as "warning" until the next call to sync()
void add_group (const std::string &name, Group g)
 add a new group
std::string color2esc_code (Colors::Color color)
 TODO(tes): unnecessary?
void refresh ()
 refresh the display (does nothing if !is_gui())

Detailed Description

Class derived from std::stringbuf that allows us to insert things before the stream and control output. This is the string buffer used by goby::util::FlexOstream for the Goby Logger (glogger)

Definition at line 51 of file flex_ostreambuf.h.


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