stream  0.10.0
stream analysis framework
Public Types | Public Member Functions
dabc::FileInterface Class Reference

Defines and implements basic POSIX file interface. More...

#include <dabc/BinaryFile.h>

Public Types

typedef void * Handle
 File handle descriptor.
 

Public Member Functions

virtual Handle fopen (const char *fname, const char *mode, const char *=0)
 
virtual void fclose (Handle f)
 
virtual size_t fwrite (const void *ptr, size_t sz, size_t nmemb, Handle f)
 
virtual size_t fread (void *ptr, size_t sz, size_t nmemb, Handle f)
 
virtual bool feof (Handle f)
 
virtual bool fflush (Handle f)
 
virtual bool fseek (Handle f, long int offset, bool relative=true)
 
virtual Object * fmatch (const char *fmask, bool select_files=true)
 Produce list of files, object must be explicitly destroyed with ref.Destroy call One could decide if files or directories should be listed.
 
virtual bool mkdir (const char *path)
 
virtual int GetFileIntPar (Handle h, const char *parname)
 Method returns file-specific int parameter.
 
virtual bool GetFileStrPar (Handle h, const char *parname, char *sbuf, int sbuflen)
 Method returns file-specific string parameter.
 

Detailed Description

Defines and implements basic POSIX file interface.

Used to virtualize access to file system and be able to replace such access by other file engines


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