Chi-Tech
chi::LogStream Class Reference

#include <chi_logstream.h>

Inheritance diagram for chi::LogStream:

Public Member Functions

 LogStream (std::ostream *output_stream, std::string header, bool dummy_flag=false)
 
virtual ~LogStream ()
 
 LogStream (const LogStream &other)
 

Private Attributes

std::ostream * log_stream_
 
std::string log_header_
 
const bool dummy_ = false
 

Detailed Description

Log stream for adding header information to a string stream.

Definition at line 11 of file chi_logstream.h.

Constructor & Destructor Documentation

◆ LogStream() [1/2]

chi::LogStream::LogStream ( std::ostream *  output_stream,
std::string  header,
bool  dummy_flag = false 
)
inline

Creates a string stream.

Definition at line 20 of file chi_logstream.h.

◆ ~LogStream()

chi::LogStream::~LogStream ( )
virtual

Flushes the broken-up/headered stream to the output.

Definition at line 5 of file chi_logstream.cc.

◆ LogStream() [2/2]

chi::LogStream::LogStream ( const LogStream other)
inline

Definition at line 31 of file chi_logstream.h.

Field Documentation

◆ dummy_

const bool chi::LogStream::dummy_ = false
private

Definition at line 16 of file chi_logstream.h.

◆ log_header_

std::string chi::LogStream::log_header_
private

Definition at line 15 of file chi_logstream.h.

◆ log_stream_

std::ostream* chi::LogStream::log_stream_
private

Definition at line 14 of file chi_logstream.h.


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