10#ifndef ZYPP_CORE_BASE_FILESTREAMBUF_H
11#define ZYPP_CORE_BASE_FILESTREAMBUF_H
14#include <zypp-core/base/SimpleStreambuf>
31 {
return (
_fd >= 0); }
35 {
return(
_mode == std::ios_base::in ); }
39 {
return(
_mode == std::ios_base::out ); }
41 bool canSeek ( std::ios_base::seekdir way_r )
const {
47 std::streamsize
readData (
char * buffer_r, std::streamsize maxcount_r );
49 bool writeData(
const char * buffer_r, std::streamsize count_r );
51 off_t
seekTo( off_t off_r, std::ios_base::seekdir way_r, std::ios_base::openmode omode_r ) {
60 bool openImpl(
int fd, std::ios_base::openmode mode_r );
65 std::ios_base::openmode
_mode = std::ios_base::openmode(0);
off_t seekTo(off_t off_r, std::ios_base::seekdir way_r, std::ios_base::openmode omode_r)
std::streamsize readData(char *buffer_r, std::streamsize maxcount_r)
std::ios_base::openmode _mode
bool writeData(const char *buffer_r, std::streamsize count_r)
bool canSeek(std::ios_base::seekdir way_r) const
bool openImpl(int fd, std::ios_base::openmode mode_r)
Easy-to use interface to the ZYPP dependency resolver.
detail::SimpleStreamBuf< detail::FdStreamBufImpl > FdStreamBuf
AutoDispose<int> calling close