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

#include <ltsm/FileInterface.h>

Inheritance diagram for ltsm::FileInterface:
dabc::FileInterface

Public Member Functions

virtual void fclose (Handle f)
 
virtual bool feof (Handle f)
 
virtual bool fflush (Handle f)
 
 FileInterface ()
 
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 Member Functions

bool CloseTSMSession ()
 Shut down current TSM session. More...
 
bool OpenTSMSession (const char *options)
 Re-open session with parameters specified in dabc options string. More...
 

Protected Attributes

std::string fCurrentFile
 
std::string fDescription
 
std::string fFsname
 
bool fIsClosing
 
int fMaxFilesPerSession
 
std::string fNode
 
std::string fOwner
 
std::string fPassword
 
int fPortFSD
 
std::string fServername
 
std::string fServernameFSD
 
struct session_t * fSession
 
int fSessionConnectRetries
 
int fSessionFileCount
 
struct fsd_session_t * fSessionFSD
 
bool fUseDaysubfolders
 
bool fUseFileSystemDemon
 

Additional Inherited Members

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

Detailed Description

Definition at line 36 of file FileInterface.h.

Constructor & Destructor Documentation

◆ FileInterface()

ltsm::FileInterface::FileInterface ( )

Definition at line 10 of file FileInterface.cxx.

◆ ~FileInterface()

ltsm::FileInterface::~FileInterface ( )
virtual

Reimplemented from dabc::FileInterface.

Definition at line 24 of file FileInterface.cxx.

Member Function Documentation

◆ OpenTSMSession()

bool ltsm::FileInterface::OpenTSMSession ( const char *  options)
protected

Re-open session with parameters specified in dabc options string.

Definition at line 390 of file FileInterface.cxx.

◆ CloseTSMSession()

bool ltsm::FileInterface::CloseTSMSession ( )
protected

Shut down current TSM session.

Definition at line 563 of file FileInterface.cxx.

◆ fopen()

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

Reimplemented from dabc::FileInterface.

Definition at line 31 of file FileInterface.cxx.

◆ fclose()

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

Reimplemented from dabc::FileInterface.

Definition at line 218 of file FileInterface.cxx.

◆ fwrite()

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

Reimplemented from dabc::FileInterface.

Definition at line 286 of file FileInterface.cxx.

◆ fread()

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

Reimplemented from dabc::FileInterface.

Definition at line 349 of file FileInterface.cxx.

◆ feof()

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

Reimplemented from dabc::FileInterface.

Definition at line 364 of file FileInterface.cxx.

◆ fflush()

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

Reimplemented from dabc::FileInterface.

Definition at line 373 of file FileInterface.cxx.

◆ fseek()

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

Reimplemented from dabc::FileInterface.

Definition at line 356 of file FileInterface.cxx.

◆ fmatch()

dabc::Object * ltsm::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 383 of file FileInterface.cxx.

◆ GetFileIntPar()

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

Method returns file-specific int parameter.

Reimplemented from dabc::FileInterface.

Definition at line 185 of file FileInterface.cxx.

◆ GetFileStrPar()

bool ltsm::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 200 of file FileInterface.cxx.

Field Documentation

◆ fSession

struct session_t* ltsm::FileInterface::fSession
protected

Definition at line 40 of file FileInterface.h.

◆ fCurrentFile

std::string ltsm::FileInterface::fCurrentFile
protected

Definition at line 41 of file FileInterface.h.

◆ fServername

std::string ltsm::FileInterface::fServername
protected

Definition at line 42 of file FileInterface.h.

◆ fNode

std::string ltsm::FileInterface::fNode
protected

Definition at line 43 of file FileInterface.h.

◆ fPassword

std::string ltsm::FileInterface::fPassword
protected

Definition at line 44 of file FileInterface.h.

◆ fOwner

std::string ltsm::FileInterface::fOwner
protected

Definition at line 45 of file FileInterface.h.

◆ fFsname

std::string ltsm::FileInterface::fFsname
protected

Definition at line 46 of file FileInterface.h.

◆ fDescription

std::string ltsm::FileInterface::fDescription
protected

Definition at line 47 of file FileInterface.h.

◆ fMaxFilesPerSession

int ltsm::FileInterface::fMaxFilesPerSession
protected

Definition at line 50 of file FileInterface.h.

◆ fSessionConnectRetries

int ltsm::FileInterface::fSessionConnectRetries
protected

Definition at line 52 of file FileInterface.h.

◆ fIsClosing

bool ltsm::FileInterface::fIsClosing
protected

Definition at line 55 of file FileInterface.h.

◆ fSessionFileCount

int ltsm::FileInterface::fSessionFileCount
protected

Definition at line 58 of file FileInterface.h.

◆ fUseDaysubfolders

bool ltsm::FileInterface::fUseDaysubfolders
protected

Definition at line 60 of file FileInterface.h.

◆ fUseFileSystemDemon

bool ltsm::FileInterface::fUseFileSystemDemon
protected

Definition at line 63 of file FileInterface.h.

◆ fServernameFSD

std::string ltsm::FileInterface::fServernameFSD
protected

Definition at line 65 of file FileInterface.h.

◆ fPortFSD

int ltsm::FileInterface::fPortFSD
protected

Definition at line 66 of file FileInterface.h.

◆ fSessionFSD

struct fsd_session_t* ltsm::FileInterface::fSessionFSD
protected

Definition at line 68 of file FileInterface.h.


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