cppfs  1.2.0.5b71c2c98fb9
Cross-platform C++ file system library supporting multiple backends (Local-FS, SSH)
Public Member Functions | Protected Attributes | List of all members
cppfs::SshOutputStreamBuffer Class Reference

Stream buffer for writing a SSH file. More...

#include <cppfs/include/cppfs/ssh/SshOutputStreamBuffer.h>

Inheritance diagram for cppfs::SshOutputStreamBuffer:
Inheritance graph
[legend]
Collaboration diagram for cppfs::SshOutputStreamBuffer:
Collaboration graph
[legend]

Public Member Functions

 SshOutputStreamBuffer (std::shared_ptr< SshFileSystem > fs, const std::string &path, std::ios_base::openmode mode, size_t bufferSize=size_kb(24))
 Constructor. More...
 
virtual ~SshOutputStreamBuffer ()
 Destructor. More...
 
virtual std::streambuf::int_type overflow (std::streambuf::int_type value) override
 
virtual int sync () override
 
virtual pos_type seekoff (off_type off, std::ios_base::seekdir way, std::ios_base::openmode which) override
 
virtual pos_type seekpos (pos_type pos, std::ios_base::openmode which) override
 

Protected Attributes

std::shared_ptr< SshFileSystemm_fs
 File system that created this iterator. More...
 
const std::string m_path
 Path to file or directory. More...
 
void * m_file
 SFTP file handle. More...
 
std::vector< std::streambuf::char_type > m_buffer
 Write buffer. More...
 

Detailed Description

Stream buffer for writing a SSH file.

Constructor & Destructor Documentation

cppfs::SshOutputStreamBuffer::SshOutputStreamBuffer ( std::shared_ptr< SshFileSystem fs,
const std::string &  path,
std::ios_base::openmode  mode,
size_t  bufferSize = size_kb(24) 
)

Constructor.

Parameters
[in]fsFile system that created this iterator
[in]pathPath to file or directory
[in]modeOpening mode flags
virtual cppfs::SshOutputStreamBuffer::~SshOutputStreamBuffer ( )
virtual

Destructor.

Member Function Documentation

virtual std::streambuf::int_type cppfs::SshOutputStreamBuffer::overflow ( std::streambuf::int_type  value)
overridevirtual
virtual int cppfs::SshOutputStreamBuffer::sync ( )
overridevirtual
virtual pos_type cppfs::SshOutputStreamBuffer::seekoff ( off_type  off,
std::ios_base::seekdir  way,
std::ios_base::openmode  which 
)
overridevirtual
virtual pos_type cppfs::SshOutputStreamBuffer::seekpos ( pos_type  pos,
std::ios_base::openmode  which 
)
overridevirtual

Member Data Documentation

std::shared_ptr<SshFileSystem> cppfs::SshOutputStreamBuffer::m_fs
protected

File system that created this iterator.

const std::string cppfs::SshOutputStreamBuffer::m_path
protected

Path to file or directory.

void* cppfs::SshOutputStreamBuffer::m_file
protected

SFTP file handle.

std::vector<std::streambuf::char_type> cppfs::SshOutputStreamBuffer::m_buffer
protected

Write buffer.


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