#include "hrfiofile.h"

HRFIOFile


class description - source file - inheritance tree (.pdf)

class HRFIOFile : public TObject

Inheritance Chart:
TObject
<-
HRFIOFile

    public:
HRFIOFile(const char* name, int mode = ios::in HRFIOFile(const HRFIOFile&) ~HRFIOFile() static int access(const char* name, int mode = 0) Bool_t bad() static TClass* Class() int close() Bool_t eof() Bool_t fail() Bool_t good() void ignore(int max = 1, int term = EOF) virtual TClass* IsA() const int open(const char* name, int mode = ios::in HRFIOFile& operator<<(const HRFIOFile& u) HRFIOFile& operator=(const HRFIOFile&) HRFIOFile& operator>>(HRFIOFile& u) int rdstat() int read(char* buffer, int len) HRFIOFileTSM& seekg(streampos offs, int p) HRFIOFileTSM& seekp(streampos n) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) streampos tellg() int write(const char* buffer, int len)

Data Members


    protected:
HRFIOFileTSM* file ! filepointer int status ! status variable streampos pos ! position in file TString* fname ! name of file int fmode ! mode of file open

Class Description

HRfioFile

  Class used for reading HLD events from file on taperobot
  Instantiates real access depending on robot (adsm or tsm)



HRFIOFile(const char *name, int mode)
 Default constructor, open file

~HRFIOFile(void)
 Default destructor

int open(const char *name, int mode)
 open file on taperobot with name and mode. Tests first if file is accessible.
 Return 0 on success, -1 otherwise.

int close(void)
 Closes file. Return 0 if closed, -1 if no file opened.

int access(const char *name, int mode)
 Tests for accessibility of file on taperobot.
 Returns 0 on success, -1 in case of failure.
 If mode is set to 0 returns 1.

int read(char *buffer, int len)
 Reads a buffer with length len from the file

int write(const char *buffer, int len)
 Writes buffer to file. NOT TESTED!!

HRFIOFileTSM& seekp(streampos n)
 Moves accesspointer in file relative to current position.

HRFIOFileTSM& seekg(streampos offs, int p)
 Moves accesspointer in file relative to position p.
 p can be one of : ios::beg

streampos tellg(void)
 Returns current position in file.

void ignore(int max, int term)
 Ignore max bytes in file. Moves access pointer to new position

Bool_t good(void)
 Returns kTRUE, if lase operation was successfull, kFALSE otherwise.

Bool_t eof(void)
 Returns kTRUE if accesspointer has reached the end of file marker, kFALSE otherwise.

Bool_t fail(void)
 Returns kTRUE if last operation failed, kFALSE otherwise.
 File unusable!

Bool_t bad(void)
 Returns kTRUE, if last operation failed, but error can be repaired.

int rdstat(void)
 Returns status.



Inline Functions


         HRFIOFile& operator>>(HRFIOFile& u)
         HRFIOFile& operator<<(const HRFIOFile& u)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
          HRFIOFile HRFIOFile(const HRFIOFile&)
         HRFIOFile& operator=(const HRFIOFile&)


Author: J.Wuestenfeld
Last update: 11/19/2003 by J.Wuestenfeld


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.