34 lines
606 B
C++
34 lines
606 B
C++
/**
|
|
* @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
|