Commit fe2d9c96 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Remove obsolete Tee class, now done via LOG()

parent 870cf284
#ifndef TEE_H
#define TEE_H 1
#include "utils/log.h"
// Simple class to replace cout. It adds the algorithm name to the beginning of
// every new line.
class tee{
tee(std::string algorithmName){
m_algorithmName = algorithmName;
template<class T>
tee &operator<<(const T &x)
LOG(INFO)<<"["<<m_algorithmName<<"] "<<x;
m_newLine = false;
}else LOG(INFO)<<x;
return *this;
tee& operator<<(std::ostream& (*fun)(std::ostream&)){
LOG(INFO) << std::endl;
// Member variables - the algorithm name and if it is the beginning of a new line
std::string m_algorithmName;
bool m_newLine;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment