Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::io::ClosableFakeStream< T > Class Template Reference

Closable mock stream. More...

#include <FakeStream.h>

Inheritance diagram for sese::io::ClosableFakeStream< T >:
sese::io::FakeStream< T > sese::io::Closeable sese::io::Stream sese::io::InputStream sese::io::OutputStream

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< StreamPtr
 
- Public Types inherited from sese::io::InputStream
typedef std::shared_ptr< InputStreamPtr
 
- Public Types inherited from sese::io::OutputStream
typedef std::shared_ptr< OutputStreamPtr
 
- Protected Attributes inherited from sese::io::FakeStream< T >
T * t
 

Detailed Description

template<typename T>
class sese::io::ClosableFakeStream< T >

Closable mock stream.

Template Parameters
TWrapper type

Constructor & Destructor Documentation

◆ ClosableFakeStream()

template<typename T >
sese::io::ClosableFakeStream< T >::ClosableFakeStream ( T * t)
inlineexplicit

Member Function Documentation

◆ close()

template<typename T >
void sese::io::ClosableFakeStream< T >::close ( )
inlineoverridevirtual

The documentation for this class was generated from the following file: