Sese Framework
2.3.0
A cross-platform framework
|
Closable mock stream. More...
#include <FakeStream.h>
Public Member Functions | |
ClosableFakeStream (T *t) | |
void | close () override |
Public Member Functions inherited from sese::io::FakeStream< T > | |
FakeStream (T *t) | |
int64_t | read (void *buffer, size_t length) override |
int64_t | write (const void *buffer, size_t length) override |
Public Member Functions inherited from sese::io::InputStream | |
virtual | ~InputStream () noexcept=default |
Public Member Functions inherited from sese::io::OutputStream | |
virtual | ~OutputStream () noexcept=default |
int64_t | write (const std::string_view &buffer) |
int64_t | write (const text::StringView &buffer) |
template<typename T > | |
int64_t | write (std::vector< T > &buffer) |
template<typename T , size_t N> | |
int64_t | write (std::array< T, N > &buffer) |
Public Member Functions inherited from sese::io::Closeable | |
virtual | ~Closeable ()=default |
Additional Inherited Members | |
Public Types inherited from sese::io::Stream | |
typedef std::shared_ptr< Stream > | Ptr |
Public Types inherited from sese::io::InputStream | |
typedef std::shared_ptr< InputStream > | Ptr |
Public Types inherited from sese::io::OutputStream | |
typedef std::shared_ptr< OutputStream > | Ptr |
Protected Attributes inherited from sese::io::FakeStream< T > | |
T * | t |
Closable mock stream.
T | Wrapper type |
|
inlineexplicit |
|
inlineoverridevirtual |
Implements sese::io::Closeable.
References sese::io::FakeStream< T >::t.