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::SshInputStreamBuffer Class Reference

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

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

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

Public Member Functions

 SshInputStreamBuffer (std::shared_ptr< SshFileSystem > fs, const std::string &path, std::ios_base::openmode mode, size_t bufferSize=size_kb(32), size_t putBackSize=size_b(128))
 Constructor. More...
 
virtual ~SshInputStreamBuffer ()
 Destructor. More...
 
virtual std::streambuf::int_type underflow () 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...
 
const size_t m_putbackSize
 Size of the putback area. More...
 
std::vector< char > m_buffer
 Read buffer. More...
 

Detailed Description

Stream buffer for reading a SSH file.

Constructor & Destructor Documentation

cppfs::SshInputStreamBuffer::SshInputStreamBuffer ( std::shared_ptr< SshFileSystem fs,
const std::string &  path,
std::ios_base::openmode  mode,
size_t  bufferSize = size_kb(32),
size_t  putBackSize = size_b(128) 
)

Constructor.

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

Destructor.

Member Function Documentation

virtual std::streambuf::int_type cppfs::SshInputStreamBuffer::underflow ( )
overridevirtual
virtual pos_type cppfs::SshInputStreamBuffer::seekoff ( off_type  off,
std::ios_base::seekdir  way,
std::ios_base::openmode  which 
)
overridevirtual
virtual pos_type cppfs::SshInputStreamBuffer::seekpos ( pos_type  pos,
std::ios_base::openmode  which 
)
overridevirtual

Member Data Documentation

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

File system that created this iterator.

const std::string cppfs::SshInputStreamBuffer::m_path
protected

Path to file or directory.

void* cppfs::SshInputStreamBuffer::m_file
protected

SFTP file handle.

const size_t cppfs::SshInputStreamBuffer::m_putbackSize
protected

Size of the putback area.

std::vector<char> cppfs::SshInputStreamBuffer::m_buffer
protected

Read buffer.


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