Engauge Digitizer 2
Loading...
Searching...
No Matches
log4cpp::PatternLayout Class Reference

Noop class that mimics the same class in the log4cpp library. More...

#include <PatternLayout.hh>

Inheritance diagram for log4cpp::PatternLayout:
Inheritance graph
Collaboration diagram for log4cpp::PatternLayout:
Collaboration graph

Public Member Functions

 PatternLayout ()
 Single constructor.
virtual ~PatternLayout ()
virtual std::string format (const LoggingEvent &event)
 Noop method for formatting an event.
void setConversionPattern (const std::string &conversionPattern)
 Noop method for setting the conversion pattern.
Public Member Functions inherited from log4cpp::Layout
 Layout ()
 Single constructor.
virtual ~Layout ()

Detailed Description

Noop class that mimics the same class in the log4cpp library.

Definition at line 13 of file PatternLayout.hh.

Constructor & Destructor Documentation

◆ PatternLayout()

PatternLayout::PatternLayout ( )

Single constructor.

Definition at line 7 of file PatternLayout.cpp.

7 :
8 Layout()
9{
10}
Layout()
Single constructor.
Definition Layout.cpp:5

◆ ~PatternLayout()

PatternLayout::~PatternLayout ( )
virtual

Definition at line 12 of file PatternLayout.cpp.

13{
14}

Member Function Documentation

◆ format()

string PatternLayout::format ( const LoggingEvent & event)
virtual

Noop method for formatting an event.

Implements log4cpp::Layout.

Definition at line 16 of file PatternLayout.cpp.

17{
18 string empty;
19 return empty;
20}

◆ setConversionPattern()

void PatternLayout::setConversionPattern ( const std::string & conversionPattern)

Noop method for setting the conversion pattern.

This used to throw ConfigureFailure but newer compilers do not like explicit throws

Definition at line 22 of file PatternLayout.cpp.

23{
24 if (conversionPattern == "") {
25 throw ConfigureFailure("Empty reason");
26 }
27
28 m_conversionPattern = conversionPattern;
29}

The documentation for this class was generated from the following files: