The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::log::DefaultFormatter Class Reference

Formatter that writes most message information, but excludes thread/sequence. More...

#include <Destination.hpp>

Inheritance diagram for sparta::log::DefaultFormatter:
Collaboration diagram for sparta::log::DefaultFormatter:

Public Member Functions

 DefaultFormatter (std::ostream &stream)
 
void write (const sparta::log::Message &msg) override
 Writes a moderate amount of info to output stream.
 
void writeHeader (const SimulationInfo &sim_info) override
 Write a header to a newly-opened report.
 
- Public Member Functions inherited from sparta::log::Formatter
 Formatter (std::ostream &stream)
 Constructor.
 
virtual ~Formatter ()
 Destructor.
 

Additional Inherited Members

- Static Public Attributes inherited from sparta::log::Formatter
static const InfoFORMATTERS
 Formatter list terminated with a Info having an empty name which is interpreted as the default formatter.
 
- Protected Attributes inherited from sparta::log::Formatter
std::ostream & stream_
 

Detailed Description

Formatter that writes most message information, but excludes thread/sequence.

Definition at line 313 of file Destination.hpp.

Constructor & Destructor Documentation

◆ DefaultFormatter()

sparta::log::DefaultFormatter::DefaultFormatter ( std::ostream &  stream)
inline

Definition at line 315 of file Destination.hpp.

Member Function Documentation

◆ write()

void sparta::log::DefaultFormatter::write ( const sparta::log::Message msg)
overridevirtual

Writes a moderate amount of info to output stream.

Implements sparta::log::Formatter.

◆ writeHeader()

void sparta::log::DefaultFormatter::writeHeader ( const SimulationInfo sim_info)
inlineoverridevirtual

Write a header to a newly-opened report.

Implements sparta::log::Formatter.

Definition at line 324 of file Destination.hpp.

Here is the call graph for this function:

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