cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
ologger::Error Class Reference

#include <ologger.hpp>

Public Member Functions

 Error (ologger &parent)
 
template<typename T >
Erroroperator<< (const T &data)
 
Erroroperator<< (endl_type endl)
 

Detailed Description

Definition at line 126 of file ologger.hpp.

Constructor & Destructor Documentation

◆ Error()

ologger::Error::Error ( ologger parent)

Member Function Documentation

◆ operator<<() [1/2]

template<typename T >
Error& ologger::Error::operator<< ( const T &  data)
inline

Definition at line 131 of file ologger.hpp.

132  {
133  if (parent_.level_ >= log_level::LOG_ERROR) {
134  if (start_of_line_) {
135  parent_.prefix_message();
136  start_of_line_ = false;
137  }
138  parent_.log_stream_ << data;
139  }
140  return *this;
141  }
ap_uint< 64 > data
Definition: tb_nal.cpp:832

◆ operator<<() [2/2]

ologger::Error & ologger::Error::operator<< ( endl_type  endl)

Definition at line 180 of file ologger.cpp.

181 {
182  if (parent_.level_ >= log_level::LOG_ERROR) {
183  parent_.log_stream_ << endl;
184  }
185 
186  parent_.changeover_if_required();
187  start_of_line_ = true;
188  return *this;
189 }

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