1 #ifndef RFIO_FileInterface
2 #define RFIO_FileInterface
4 #ifndef DABC_BinaryFile
23 virtual Handle fopen(
const char* fname,
const char* mode,
const char* opt = 0);
27 virtual size_t fwrite(
const void* ptr,
size_t sz,
size_t nmemb,
Handle f);
29 virtual size_t fread(
void* ptr,
size_t sz,
size_t nmemb,
Handle f);
35 virtual bool fseek(
Handle f,
long int offset,
bool realtive =
true);
Defines and implements basic POSIX file interface.
void * Handle
File handle descriptor.
Base class for most of the DABC classes.
char fDataMoverName[64]
obtained data mover index
virtual void fclose(Handle f)
virtual bool fseek(Handle f, long int offset, bool realtive=true)
virtual bool feof(Handle f)
virtual bool GetFileStrPar(Handle h, const char *parname, char *sbuf, int sbuflen)
Method returns file-specific string parameter.
virtual size_t fread(void *ptr, size_t sz, size_t nmemb, Handle f)
virtual int GetFileIntPar(Handle h, const char *parname)
Method returns file-specific int parameter.
FileInterface()
obtained data mover name
virtual size_t fwrite(const void *ptr, size_t sz, size_t nmemb, Handle f)
int fDataMoverIndx
counter of opened files via special connection to datamover
virtual Handle fopen(const char *fname, const char *mode, const char *opt=0)
int fOpenedCounter
connection to datamover, done once when any special argument is appearing
virtual dabc::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 ...
virtual bool fflush(Handle f)