class NamStreamPipe : public NamStream

Make front_ seem like a good, seekable file when really it's a low-down pipe

Inheritance:


Public Methods

virtual int close()
virtual int eof()
virtual char get_char()
virtual char* gets(char *buf, int len)
NamStreamPipe(const char *fn)
virtual int read(char *buf, int size)
virtual off_t seek(off_t offset, int whence)
virtual int seekable()
virtual off_t tell()

Protected Fields

off_t back_len_
FILE* front_
static FILE* persistent_front_

Protected Methods

void insure_backing(off_t lim)

Inherited from NamStream:

Public Methods

int command(int argc, const char*const* argv)
int is_ok()
static NamStream* open(const char *fn)
virtual char* rgets(char *buf, int len)

Protected Fields

int is_open_

Documentation

Make front_ seem like a good, seekable file when really it's a low-down pipe. We do this by saving the output in back_.
FILE* front_

off_t back_len_

void insure_backing(off_t lim)

static FILE* persistent_front_

NamStreamPipe(const char *fn)

virtual int seekable()

virtual char* gets(char *buf, int len)

virtual char get_char()

virtual off_t seek(off_t offset, int whence)

virtual off_t tell()

virtual int close()

virtual int eof()

virtual int read(char *buf, int size)


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

Adapted for the NS documentation page

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de