added duplicate console to mqtt
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* @file outputStreamMqtt.h
|
||||
* @author Alexander Klein (alex@kleiax.de)
|
||||
* @brief
|
||||
* @version 0.1
|
||||
* @date 2022-02-14
|
||||
*
|
||||
* @copyright Copyright (c) 2022
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef OUTPUT_STREAM_MQTT_H
|
||||
#define OUTPUT_STREAM_MQTT_H
|
||||
|
||||
#include <iostream>
|
||||
#include <streambuf>
|
||||
#include <locale>
|
||||
#include <cstdio>
|
||||
|
||||
#include "debugMqtt.h"
|
||||
|
||||
class OutputBufMqtt : public std::streambuf {
|
||||
public:
|
||||
OutputBufMqtt(DebugMqtt* debugMqtt);
|
||||
|
||||
protected:
|
||||
virtual std::streambuf::int_type overflow(std::streambuf::int_type c);
|
||||
|
||||
public:
|
||||
DebugMqtt* debugMqtt;
|
||||
};
|
||||
|
||||
#endif // OUTPUT_STREAM_MQTT_H
|
||||
Reference in New Issue
Block a user