#include <logger_formatters.hh>
Inheritance diagram for lestes::msg::shortname_formatter:

Public Member Functions | |
| virtual ::std::ostream & | format (const ptr< logger > &,::std::ostream &) |
| virtual void | format_end (const ptr< logger > &,::std::ostream &) |
Static Public Member Functions | |
| static ptr< shortname_formatter > | instance () |
Protected Member Functions | |
| shortname_formatter () | |
Private Member Functions | |
| shortname_formatter (const color_formatter &) | |
Static Private Attributes | |
| static ptr< shortname_formatter > | the_instance = the_instance |
Definition at line 125 of file logger_formatters.hh.
| lestes::msg::shortname_formatter::shortname_formatter | ( | ) | [protected] |
| lestes::msg::shortname_formatter::shortname_formatter | ( | const color_formatter & | ) | [private] |
| ptr< shortname_formatter > lestes::msg::shortname_formatter::instance | ( | ) | [static] |
Definition at line 227 of file logger_formatters.cc.
References shortname_formatter(), and the_instance.
00228 { 00229 if (!the_instance) 00230 the_instance = new shortname_formatter(); 00231 return the_instance; 00232 }
| std::ostream & lestes::msg::shortname_formatter::format | ( | const ptr< logger > & | , | |
| ::std::ostream & | ||||
| ) | [virtual] |
Implements lestes::msg::logger_formatter.
Definition at line 219 of file logger_formatters.cc.
References lestes::msg::logger2shortname().
00220 { 00221 return os << logger2shortname(log) << ": "; 00222 }
| void lestes::msg::shortname_formatter::format_end | ( | const ptr< logger > & | , | |
| ::std::ostream & | ||||
| ) | [virtual] |
ptr< shortname_formatter > lestes::msg::shortname_formatter::the_instance = the_instance [static, private] |
1.5.1-20070107