libkazv
Kazv::AsioStdFileProvider< Exec > Class Template Reference

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

Public Types

using FileStreamT = AsioStdFileStream< Exec >
 

Public Member Functions

 AsioStdFileProvider (Exec exec, std::string filename)
 Constructor. More...
 
FileStreamT getStream (FileOpenMode mode) const
 Get the FileStream provided by this. More...
 

Member Typedef Documentation

◆ FileStreamT

template<class Exec >
using Kazv::AsioStdFileProvider< Exec >::FileStreamT = AsioStdFileStream<Exec>

Constructor & Destructor Documentation

◆ AsioStdFileProvider()

template<class Exec >
Kazv::AsioStdFileProvider< Exec >::AsioStdFileProvider ( Exec  exec,
std::string  filename 
)
inline

Constructor.

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

Member Function Documentation

◆ getStream()

template<class Exec >
FileStreamT Kazv::AsioStdFileProvider< Exec >::getStream ( FileOpenMode  mode) const
inline

Get the FileStream provided by this.

Returns
A FileStreamT that is associated with this file.

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