This commit is contained in:
Dmitry Borisenko
2021-12-22 14:09:50 +01:00
parent 5e9b15e7de
commit 24a9d55ea0
195 changed files with 15629 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
// StreamUtils - github.com/bblanchon/ArduinoStreamUtils
// Copyright Benoit Blanchon 2019-2021
// MIT License
#pragma once
#include "../Policies/ReadSpyingPolicy.hpp"
#include "../Policies/WriteSpyingPolicy.hpp"
#include "StreamProxy.hpp"
namespace StreamUtils {
struct SpyingStream : StreamProxy<ReadSpyingPolicy, WriteSpyingPolicy> {
SpyingStream(Stream &target, Print &log)
: StreamProxy<ReadSpyingPolicy, WriteSpyingPolicy>(
target, ReadSpyingPolicy{log}, WriteSpyingPolicy{log}) {}
};
} // namespace StreamUtils