#include <StrucioStream.h>

Public Member Functions | |
| StrucioStream (const char *fname, const char *fmode="rb") | |
| StrucioStream (const char *fname, const int fileno, const char *fmode="rb") | |
| Construct from open file descriptor. | |
| void | Follow () |
| Tell this stream to follow file changes. | |
| size_t | Read (void *ptr, size_t bytes) |
| Read from stream. | |
| virtual size_t | Write (void *ptr, size_t bytes)=0 |
| Read from stream. | |
| DtsObject | construct (DTS *dts, dts_typeid t) |
| Construct a fixed-sized object. | |
| DtsObject | construct (DTS *dts, dts_typeid t, unsigned int size) |
| Construct an object. | |
Static Public Member Functions | |
| static StrucioStream * | MagicOpen (const char *filename, const char *mode="rb") |
| Return the appropriate subclass based on file type. | |
| static StrucioStream * | MagicOpen (DtsObject fo) |
| Open a file specified in a DtsObject and return a StrucioStream object for it. | |
Protected Member Functions | |
| virtual size_t | BasicRead (void *ptr, size_t bytes)=0 |
| Read from stream. | |
| virtual bool | Close ()=0 |
| Close stream. | |
| virtual bool | FdOpen ()=0 |
| bool | Open () |
| (Re)Open stream by name. | |
Protected Attributes | |
| bool | follow |
| ino_t | inode |
| const char * | filename |
| int | fd |
| We always keep a valid fd number around. | |
| const char * | mode |
| Desired open mode (fopen syntax). | |
1.5.8