libopenraw
Public Member Functions | List of all members
OpenRaw::IO::StreamClone Class Reference

cloned stream. Allow reading from a different offset More...

#include <streamclone.h>

Inheritance diagram for OpenRaw::IO::StreamClone:
OpenRaw::IO::Stream

Public Member Functions

 StreamClone (Stream *clone, off_t offset)
 
virtual Error open ()
 
virtual int close ()
 
virtual int seek (off_t offset, int whence)
 
virtual int read (void *buf, size_t count)
 
virtual off_t filesize ()
 
- Public Member Functions inherited from OpenRaw::IO::Stream
 Stream (const char *filename)
 
Error get_error ()
 
const std::string & get_path () const
 
uint8_t readByte () throw (Internals::IOException)
 

Additional Inherited Members

- Public Types inherited from OpenRaw::IO::Stream
typedef ::or_error Error
 
- Protected Member Functions inherited from OpenRaw::IO::Stream
void set_error (Error error)
 

Detailed Description

cloned stream. Allow reading from a different offset

Definition at line 35 of file streamclone.h.

Member Function Documentation

int OpenRaw::IO::StreamClone::close ( )
virtual

close the file

Implements OpenRaw::IO::Stream.

Definition at line 55 of file streamclone.cpp.

Stream::Error OpenRaw::IO::StreamClone::open ( )
virtual

open the file

Implements OpenRaw::IO::Stream.

Definition at line 42 of file streamclone.cpp.

References OpenRaw::IO::Stream::seek().

int OpenRaw::IO::StreamClone::read ( void *  buf,
size_t  count 
)
virtual

read in the file. Semantics are similar to POSIX read()

Implements OpenRaw::IO::Stream.

Definition at line 75 of file streamclone.cpp.

References OpenRaw::IO::Stream::read().

int OpenRaw::IO::StreamClone::seek ( off_t  offset,
int  whence 
)
virtual

seek in the file. Semantics are similar to POSIX lseek()

Implements OpenRaw::IO::Stream.

Definition at line 62 of file streamclone.cpp.

References OpenRaw::IO::Stream::seek().


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