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

Mock stream. More...

#include <FakeStream.h>

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

Public Member Functions

 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)
 

Protected Attributes

T * t
 

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
 

Detailed Description

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

Mock stream.

Template Parameters
TWrapper type

Constructor & Destructor Documentation

◆ FakeStream()

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

Member Function Documentation

◆ read()

template<typename T >
int64_t sese::io::FakeStream< T >::read ( void * buffer,
size_t length )
inlineoverridevirtual

◆ write()

template<typename T >
int64_t sese::io::FakeStream< T >::write ( const void * buffer,
size_t length )
inlineoverridevirtual

Member Data Documentation

◆ t


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