libkazv
Kazv::AsioStdFileStream< Exec > Class Template Reference

#include <asio-std-file-handler.hpp>

Public Types

using DataT = FileContent
 

Public Member Functions

 AsioStdFileStream (Exec exec, std::string filename, FileOpenMode mode)
 Constructor. More...
 
bool valid ()
 
template<class Callback >
void read (int maxSize, Callback readCallback)
 
template<class Callback >
void write (DataT data, Callback writeCallback)
 

Member Typedef Documentation

◆ DataT

template<class Exec >
using Kazv::AsioStdFileStream< Exec >::DataT = FileContent

Constructor & Destructor Documentation

◆ AsioStdFileStream()

template<class Exec >
Kazv::AsioStdFileStream< Exec >::AsioStdFileStream ( Exec  exec,
std::string  filename,
FileOpenMode  mode 
)
inline

Constructor.

Parameters
execA boost::asio executor. It should run actions sequentially.
filenameThe file name of this FileStream.

Member Function Documentation

◆ read()

template<class Exec >
template<class Callback >
void Kazv::AsioStdFileStream< Exec >::read ( int  maxSize,
Callback  readCallback 
)
inline

◆ valid()

template<class Exec >
bool Kazv::AsioStdFileStream< Exec >::valid ( )
inline

◆ write()

template<class Exec >
template<class Callback >
void Kazv::AsioStdFileStream< Exec >::write ( DataT  data,
Callback  writeCallback 
)
inline

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