1 #ifndef LTSM_FileInterface
2 #define LTSM_FileInterface
5 #ifndef DABC_BinaryFile
10 #define LTSM_USE_FSD 1
87 virtual Handle fopen(
const char* fname,
const char* mode,
92 virtual size_t fwrite(
const void* ptr,
size_t sz,
size_t nmemb,
95 virtual size_t fread(
void* ptr,
size_t sz,
size_t nmemb,
Handle f);
101 virtual bool fseek(
Handle f,
long int offset,
bool realtive =
true);
104 bool select_files =
true);
Defines and implements basic POSIX file interface.
void * Handle
File handle descriptor.
Base class for most of the DABC classes.
virtual bool fflush(Handle f)
bool CloseTSMSession()
Shut down current TSM session.
std::string fServernameFSD
virtual int GetFileIntPar(Handle h, const char *parname)
Method returns file-specific int parameter.
int fSessionConnectRetries
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 void fclose(Handle f)
struct fsd_session_t * fSessionFSD
virtual bool feof(Handle f)
virtual bool fseek(Handle f, long int offset, bool realtive=true)
bool OpenTSMSession(const char *options)
Re-open session with parameters specified in dabc options string.
struct session_t * fSession
virtual Handle fopen(const char *fname, const char *mode, const char *opt=0)
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 size_t fwrite(const void *ptr, size_t sz, size_t nmemb, Handle f)