lestes::msg::xml_formatter Class Reference

#include <logger_formatters.hh>

Inheritance diagram for lestes::msg::xml_formatter:

lestes::msg::logger_formatter lestes::std::object lestes::std::mem::keystone List of all members.

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_formatterinstance ()

Protected Member Functions

 xml_formatter ()

Private Attributes

lstring tag_name

Static Private Attributes

static ptr< xml_formatterthe_instance = the_instance

Detailed Description

Definition at line 78 of file logger_formatters.hh.


Constructor & Destructor Documentation

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 {}


Member Function Documentation

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]

Implements lestes::msg::logger_formatter.

Definition at line 119 of file logger_formatters.cc.

00120 {
00121 }

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 }


Member Data Documentation

ptr< xml_formatter > lestes::msg::xml_formatter::the_instance = the_instance [static, private]

Definition at line 88 of file logger_formatters.hh.

Referenced by instance().

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().


The documentation for this class was generated from the following files:
Generated on Mon Feb 12 18:25:54 2007 for lestes by doxygen 1.5.1-20070107