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

#include <ologger.hpp>

Public Member Functions

 Debug (ologger &parent)
 
template<typename T >
Debugoperator<< (const T &data)
 
Debugoperator<< (endl_type endl)
 

Detailed Description

Definition at line 74 of file ologger.hpp.

Constructor & Destructor Documentation

◆ Debug()

ologger::Debug::Debug ( ologger parent)

Member Function Documentation

◆ operator<<() [1/2]

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

Definition at line 79 of file ologger.hpp.

80  {
81  if (parent_.level_ >= log_level::LOG_DEBUG) {
82  if (start_of_line_) {
83  parent_.prefix_message();
84  start_of_line_ = false;
85  }
86 
87  parent_.log_stream_ << data;
88  }
89 
90  return *this;
91  }
ap_uint< 64 > data
Definition: tb_nal.cpp:832

◆ operator<<() [2/2]

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

Definition at line 150 of file ologger.cpp.

151 {
152  if (parent_.level_ >= log_level::LOG_INFO) {
153  parent_.log_stream_ << endl;
154  }
155 
156  parent_.changeover_if_required();
157  start_of_line_ = true;
158  return *this;
159 }

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