AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
anch::cutils::CStreambuf Class Reference

#include <iostream.hpp>

+ Inheritance diagram for anch::cutils::CStreambuf:
+ Collaboration diagram for anch::cutils::CStreambuf:

Public Member Functions

 CStreambuf (anch::cutils::cbuffer cbuffer, anch::cutils::Direction dir)
 
virtual ~CStreambuf ()
 
virtual std::streambuf::int_type underflow ()
 
virtual std::streambuf::int_type overflow (std::streambuf::int_type value)
 
virtual int sync ()
 

Protected Member Functions

 CStreambuf () noexcept
 

Detailed Description

C stream buffer implementation

Since
0.1
Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ CStreambuf() [1/2]

anch::cutils::CStreambuf::CStreambuf ( anch::cutils::cbuffer cbuffer,
anch::cutils::Direction dir )

CStreambuf constructor

Parameters
cbufferthe cbuffer to user
dirstream direction
Exceptions
std::invalid_argumentcbuffer definition according to dir

◆ CStreambuf() [2/2]

anch::cutils::CStreambuf::CStreambuf ( )
protectednoexcept

CStreambuf default protected constructor

◆ ~CStreambuf()

virtual anch::cutils::CStreambuf::~CStreambuf ( )
virtual

CStreambuf destructor

+ Here is the call graph for this function:

Member Function Documentation

◆ overflow()

virtual std::streambuf::int_type anch::cutils::CStreambuf::overflow ( std::streambuf::int_type value)
virtual

Write to input stream

Parameters
valuethe byte to write
Returns
the number of bytes which has been write
+ Here is the call graph for this function:

◆ sync()

virtual int anch::cutils::CStreambuf::sync ( )
virtual

Consume stream ...

Returns
plop
+ Here is the call graph for this function:

◆ underflow()

virtual std::streambuf::int_type anch::cutils::CStreambuf::underflow ( )
virtual

Read input stream

Returns
the number of bytes which has been read
+ Here is the call graph for this function:

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