C stream data source: base class for all sources based on a FILE* (stdio streams)
More...
#include <soma-io/datasource/cstreamdatasource.h>
C stream data source: base class for all sources based on a FILE* (stdio streams)
Definition at line 48 of file cstreamdatasource.h.
◆ CStreamDataSource()
soma::CStreamDataSource::CStreamDataSource |
( |
FILE * |
f = 0 , |
|
|
int |
mode = Read |
|
) |
| |
◆ ~CStreamDataSource()
virtual soma::CStreamDataSource::~CStreamDataSource |
( |
| ) |
|
|
virtual |
◆ allowsMemoryMapping()
virtual bool soma::CStreamDataSource::allowsMemoryMapping |
( |
| ) |
const |
|
virtual |
in the general case, memory mapping is not possible
Implements soma::DataSource.
◆ at() [1/2]
virtual offset_t soma::CStreamDataSource::at |
( |
| ) |
const |
|
virtual |
◆ at() [2/2]
virtual bool soma::CStreamDataSource::at |
( |
offset_t |
pos | ) |
|
|
virtual |
◆ clone()
virtual DataSource* soma::CStreamDataSource::clone |
( |
| ) |
const |
|
virtual |
◆ close()
virtual void soma::CStreamDataSource::close |
( |
| ) |
|
|
virtual |
◆ filePtr()
FILE* soma::CStreamDataSource::filePtr |
( |
| ) |
const |
◆ getch()
virtual int soma::CStreamDataSource::getch |
( |
| ) |
|
|
virtual |
◆ isOpen()
virtual bool soma::CStreamDataSource::isOpen |
( |
| ) |
const |
|
virtual |
◆ iterateMode()
virtual int soma::CStreamDataSource::iterateMode |
( |
| ) |
const |
|
virtual |
possible iteration mode(s): bitwise OR of IterateMode values
Implements soma::DataSource.
◆ open()
virtual bool soma::CStreamDataSource::open |
( |
int |
mode | ) |
|
|
virtual |
useless for a file descriptor: a fd is already open
Implements soma::DataSource.
◆ putch()
virtual int soma::CStreamDataSource::putch |
( |
int |
ch | ) |
|
|
virtual |
◆ readBlock()
virtual long soma::CStreamDataSource::readBlock |
( |
char * |
data, |
|
|
unsigned long |
maxlen |
|
) |
| |
|
virtual |
◆ setFilePtr()
void soma::CStreamDataSource::setFilePtr |
( |
FILE * |
f | ) |
|
◆ size()
virtual offset_t soma::CStreamDataSource::size |
( |
| ) |
const |
|
virtual |
◆ ungetch()
virtual bool soma::CStreamDataSource::ungetch |
( |
int |
ch | ) |
|
|
virtual |
◆ writeBlock()
virtual long soma::CStreamDataSource::writeBlock |
( |
const char * |
data, |
|
|
unsigned long |
len |
|
) |
| |
|
virtual |
◆ _f
FILE* soma::CStreamDataSource::_f |
|
protected |
The documentation for this class was generated from the following file: