mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-05-27 21:29:21 +03:00
18 lines
422 B
C++
18 lines
422 B
C++
|
|
// StreamUtils - github.com/bblanchon/ArduinoStreamUtils
|
||
|
|
// Copyright Benoit Blanchon 2019-2021
|
||
|
|
// MIT License
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "../Policies/WriteSpyingPolicy.hpp"
|
||
|
|
#include "PrintProxy.hpp"
|
||
|
|
|
||
|
|
namespace StreamUtils {
|
||
|
|
|
||
|
|
struct SpyingPrint : PrintProxy<WriteSpyingPolicy> {
|
||
|
|
SpyingPrint(Print &target, Print &log)
|
||
|
|
: PrintProxy<WriteSpyingPolicy>(target, WriteSpyingPolicy{log}) {}
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace StreamUtils
|