argos::CARGoSLog Class Reference

#include <argos_log.h>

Public Member Functions

 CARGoSLog (std::ostream &c_stream, const SLogColor &s_log_color, bool b_colored_output_enabled=true)
 
 ~CARGoSLog ()
 
void EnableColoredOutput ()
 
void DisableColoredOutput ()
 
bool IsColoredOutput () const
 
std::ostream & GetStream ()
 
void RedirectToFile (const std::string &str_fname)
 
void Flush ()
 
CARGoSLogoperator<< (std::ostream &(*c_stream)(std::ostream &))
 
template<typename T >
CARGoSLogoperator<< (const T t_msg)
 

Detailed Description

Definition at line 59 of file argos_log.h.

Constructor & Destructor Documentation

argos::CARGoSLog::CARGoSLog ( std::ostream &  c_stream,
const SLogColor s_log_color,
bool  b_colored_output_enabled = true 
)
inline

Definition at line 85 of file argos_log.h.

argos::CARGoSLog::~CARGoSLog ( )
inline

Definition at line 97 of file argos_log.h.

Member Function Documentation

void argos::CARGoSLog::DisableColoredOutput ( )
inline

Definition at line 114 of file argos_log.h.

void argos::CARGoSLog::EnableColoredOutput ( )
inline

Definition at line 110 of file argos_log.h.

void argos::CARGoSLog::Flush ( )
inline

Definition at line 147 of file argos_log.h.

std::ostream& argos::CARGoSLog::GetStream ( )
inline

Definition at line 122 of file argos_log.h.

bool argos::CARGoSLog::IsColoredOutput ( ) const
inline

Definition at line 118 of file argos_log.h.

CARGoSLog& argos::CARGoSLog::operator<< ( std::ostream &(*)(std::ostream &)  c_stream)
inline

Definition at line 150 of file argos_log.h.

template<typename T >
CARGoSLog& argos::CARGoSLog::operator<< ( const T  t_msg)
inline

Definition at line 159 of file argos_log.h.

void argos::CARGoSLog::RedirectToFile ( const std::string &  str_fname)
inline

Definition at line 126 of file argos_log.h.