DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Protected Attributes
rfio::FileInterface Class Reference

#include <rfio/FileInterface.h>

Inheritance diagram for rfio::FileInterface:
dabc::FileInterface

Public Member Functions

virtual void fclose (Handle f)
 
virtual bool feof (Handle f)
 
virtual bool fflush (Handle f)
 
 FileInterface ()
 obtained data mover name More...
 
virtual dabc::Objectfmatch (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. More...
 
virtual Handle fopen (const char *fname, const char *mode, const char *opt=0)
 
virtual size_t fread (void *ptr, size_t sz, size_t nmemb, Handle f)
 
virtual bool fseek (Handle f, long int offset, bool realtive=true)
 
virtual size_t fwrite (const void *ptr, size_t sz, size_t nmemb, Handle f)
 
virtual int GetFileIntPar (Handle h, const char *parname)
 Method returns file-specific int parameter. More...
 
virtual bool GetFileStrPar (Handle h, const char *parname, char *sbuf, int sbuflen)
 Method returns file-specific string parameter. More...
 
virtual ~FileInterface ()
 
- Public Member Functions inherited from dabc::FileInterface
virtual bool mkdir (const char *path)
 

Protected Attributes

int fDataMoverIndx
 counter of opened files via special connection to datamover More...
 
char fDataMoverName [64]
 obtained data mover index More...
 
int fOpenedCounter
 connection to datamover, done once when any special argument is appearing More...
 
void * fRemote
 

Additional Inherited Members

- Public Types inherited from dabc::FileInterface
typedef void * Handle
 File handle descriptor. More...
 

Detailed Description

Definition at line 10 of file FileInterface.h.

Constructor & Destructor Documentation

◆ FileInterface()

rfio::FileInterface::FileInterface ( )

obtained data mover name

Definition at line 11 of file FileInterface.cxx.

◆ ~FileInterface()

rfio::FileInterface::~FileInterface ( )
virtual

Reimplemented from dabc::FileInterface.

Definition at line 20 of file FileInterface.cxx.

Member Function Documentation

◆ fopen()

dabc::FileInterface::Handle rfio::FileInterface::fopen ( const char *  fname,
const char *  mode,
const char *  opt = 0 
)
virtual

Reimplemented from dabc::FileInterface.

Definition at line 30 of file FileInterface.cxx.

◆ fclose()

void rfio::FileInterface::fclose ( Handle  f)
virtual

Reimplemented from dabc::FileInterface.

Definition at line 154 of file FileInterface.cxx.

◆ fwrite()

size_t rfio::FileInterface::fwrite ( const void *  ptr,
size_t  sz,
size_t  nmemb,
Handle  f 
)
virtual

Reimplemented from dabc::FileInterface.

Definition at line 168 of file FileInterface.cxx.

◆ fread()

size_t rfio::FileInterface::fread ( void *  ptr,
size_t  sz,
size_t  nmemb,
Handle  f 
)
virtual

Reimplemented from dabc::FileInterface.

Definition at line 174 of file FileInterface.cxx.

◆ feof()

bool rfio::FileInterface::feof ( Handle  f)
virtual

Reimplemented from dabc::FileInterface.

Definition at line 196 of file FileInterface.cxx.

◆ fflush()

bool rfio::FileInterface::fflush ( Handle  f)
virtual

Reimplemented from dabc::FileInterface.

Definition at line 201 of file FileInterface.cxx.

◆ fseek()

bool rfio::FileInterface::fseek ( Handle  f,
long int  offset,
bool  realtive = true 
)
virtual

Reimplemented from dabc::FileInterface.

Definition at line 179 of file FileInterface.cxx.

◆ fmatch()

dabc::Object * rfio::FileInterface::fmatch ( const char *  fmask,
bool  select_files = true 
)
virtual

Produce list of files, object must be explicitly destroyed with ref.Destroy call One could decide if files or directories should be listed.

Reimplemented from dabc::FileInterface.

Definition at line 208 of file FileInterface.cxx.

◆ GetFileIntPar()

int rfio::FileInterface::GetFileIntPar ( Handle  h,
const char *  parname 
)
virtual

Method returns file-specific int parameter.

Reimplemented from dabc::FileInterface.

Definition at line 135 of file FileInterface.cxx.

◆ GetFileStrPar()

bool rfio::FileInterface::GetFileStrPar ( Handle  h,
const char *  parname,
char *  sbuf,
int  sbuflen 
)
virtual

Method returns file-specific string parameter.

Reimplemented from dabc::FileInterface.

Definition at line 142 of file FileInterface.cxx.

Field Documentation

◆ fRemote

void* rfio::FileInterface::fRemote
protected

Definition at line 12 of file FileInterface.h.

◆ fOpenedCounter

int rfio::FileInterface::fOpenedCounter
protected

connection to datamover, done once when any special argument is appearing

Definition at line 13 of file FileInterface.h.

◆ fDataMoverIndx

int rfio::FileInterface::fDataMoverIndx
protected

counter of opened files via special connection to datamover

Definition at line 14 of file FileInterface.h.

◆ fDataMoverName

char rfio::FileInterface::fDataMoverName[64]
protected

obtained data mover index

Definition at line 15 of file FileInterface.h.


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