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

Public Member Functions | |
| virtual ::std::ostream & | format (const ptr< logger > &,::std::ostream &) |
| virtual void | format_end (const ptr< logger > &,::std::ostream &) |
| lstring | tag_name_get () const |
| void | tag_name_set (const lstring &) |
Static Public Member Functions | |
| static ptr< xml_formatter > | instance () |
Protected Member Functions | |
| xml_formatter () | |
Private Attributes | |
| lstring | tag_name |
Static Private Attributes | |
| static ptr< xml_formatter > | the_instance = the_instance |
Definition at line 78 of file logger_formatters.hh.
| lestes::msg::xml_formatter::xml_formatter | ( | ) | [protected] |
Definition at line 102 of file logger_formatters.cc.
Referenced by instance().
00102 : logger_formatter(), tag_name("not-set-yet") 00103 {}
| ptr< xml_formatter > lestes::msg::xml_formatter::instance | ( | ) | [static] |
Definition at line 107 of file logger_formatters.cc.
References the_instance, and xml_formatter().
00108 { 00109 if (!the_instance) 00110 the_instance = new xml_formatter(); 00111 return the_instance; 00112 }
| std::ostream & lestes::msg::xml_formatter::format | ( | const ptr< logger > & | , | |
| ::std::ostream & | ||||
| ) | [virtual] |
Implements lestes::msg::logger_formatter.
Definition at line 114 of file logger_formatters.cc.
References lestes::msg::logger2fullname(), and tag_name.
00115 { 00116 return os << '<' << tag_name << " by=\"" << logger2fullname(l) << "\">"; 00117 }
| void lestes::msg::xml_formatter::format_end | ( | const ptr< logger > & | , | |
| ::std::ostream & | ||||
| ) | [virtual] |
| lstring lestes::msg::xml_formatter::tag_name_get | ( | ) | const |
Definition at line 128 of file logger_formatters.cc.
References tag_name.
00129 { 00130 return tag_name; 00131 }
| void lestes::msg::xml_formatter::tag_name_set | ( | const lstring & | ) |
Definition at line 123 of file logger_formatters.cc.
References tag_name.
00124 { 00125 tag_name = a_tag_name; 00126 }
ptr< xml_formatter > lestes::msg::xml_formatter::the_instance = the_instance [static, private] |
lstring lestes::msg::xml_formatter::tag_name [private] |
Definition at line 89 of file logger_formatters.hh.
Referenced by format(), tag_name_get(), and tag_name_set().
1.5.1-20070107