class HRFIOFileTSM: public TObject

_HADES_CLASS_DESCRIPTION

HRfioFile

  Class used for reading HLD events from file on taperobot


Function Members (Methods)

public:
HRFIOFileTSM(const HRFIOFileTSM&)
HRFIOFileTSM(const Char_t* name = "", Int_t mode = ios::in)
virtual~HRFIOFileTSM()
voidTObject::AbstractMethod(const char* method) const
static Int_taccess(const Char_t* name, Int_t mode = 0)
virtual voidTObject::AppendPad(Option_t* option = "")
Bool_tbad()
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
Int_tclose()
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
Bool_teof()
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
Bool_tfail()
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Bool_tgood()
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
voidignore(Int_t max = 1, Int_t term = EOF)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
Int_topen(const Char_t* name, Int_t mode = ios::in)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
HRFIOFileTSM&operator<<(const HRFIOFileTSM& u)
HRFIOFileTSM&operator=(const HRFIOFileTSM&)
HRFIOFileTSM&operator>>(HRFIOFileTSM& u)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
Int_trdstat()
virtual Int_tTObject::Read(const char* name)
Int_tread(Char_t* buffer, Int_t len)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
HRFIOFileTSM&seekg(streampos offs, Int_t p)
HRFIOFileTSM&seekp(streampos n)
Char_t*serror()
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
Int_tstat(Long_t* id, Long_t* size, Long_t* flags, Long_t* modtime)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
streampostellg()
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
static Int_tunlink(Char_t* name)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
Int_twrite(const Char_t* buffer, Int_t len)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
srawAPIFile*file! pointer to file in taperobot
Int_tfmode! mode of file open
Char_t*fname! name of file
HRFIOTsmSignalHandler*handler
streampospos! position in file
Int_tstatus! status variable

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HRFIOFileTSM(const Char_t* name = "", Int_t mode = ios::in)
 Default constructor. sET ALL PARAMETERS TO DEFAULT VALUES.

 Input parameters:
    const Char_t* name
       Name of the file

    Int_t mode
       Mode to be used for file opening,
       one of the ios::xxx variables

 Output parameters:
    none

 Return code:
    none
~HRFIOFileTSM(void)
 Default destructor. cLOSE FILE IF OPEN.

 Input parameters:
    none

 Output parameters:
    none

 Return code:
   none
Int_t open(const Char_t* name, Int_t mode = ios::in)
 Open a file on taperobot with name and mode. Tests first if file is accessible.

 Input parameters:
   const Char_t* name
      Name of the file to be opened.

   Int_t mode
       Mode to be used for file opening,
       one of the ios::xxx variables

 Output parameters:
    none

 Return code:
    0 on success, -1 otherwise.
Int_t close(void)
 Closes file.

 Input parameters:
    none

 Output parameters:
   none

 Return code:
   0 if closed, -1 if no file opened.
Int_t access(const Char_t* name, Int_t mode = 0)
 Tests for accessibility of file on taperobot.

 Input parameters:
   const Char_t* name
       Name of the file to be tested

   Int_t mode
       Mode to be used for file opening,
       one of the ios::xxx variables

 Output parameters:
    none

 Return code:
    0 on success, -1 in case of failure.
    If mode is set to !=0 returns -1.
Int_t read(Char_t* buffer, Int_t len)
 Reads a buffer with length len from the file

 Input parameters:
   Int_t len
     Length of buffer, defines maximum number of bytes to be read from file.

 Output parameters:
   Char_t* buffer
      Pointer to buffer to store data from file into.

 Return code:
   Number of bytes read from file
Int_t write(const Char_t* buffer, Int_t len)
 Writes buffer to file. NOT TESTED!!

 Input Parameters:
   const Char_t* buffer
     Buffer with data to be written to file.

   Int_t len
     Number of bytes to write to file.

 Output parameters:
   none

 Return code:
   Number of bytes written.
HRFIOFileTSM& seekp(streampos n)
 Moves accesspointer in file relative to current position.

 Input parameters:
   streampos n
      Position in stream to move filepointer to.

 Output parameters:
   none

 Return code:
   Pointer to this object.
HRFIOFileTSM& seekg(streampos offs, Int_t p)
 Moves accesspointer in file relative.

 Input parameters:
   streampos offs
     number of bytes to move filepointer relativ to position defined via p.

   Int_t p
     Relativ to what position to move fileponter. Can be one of :
     ios::beg, ios::cur, ios::end.

 Output parameters:
   none

 Return code:
   Pointer to this object.
streampos tellg(void)
 Returns current position in file.

 Input parameters:
   none

 Output parameters:
   none

 Return code:
   Actual position in file.
void ignore(Int_t max = 1, Int_t term = EOF)
 Ignore max bytes in file. Moves access pointer to new position.

 Input parameters:
   Int_t max
     Maximum number of bytes to skip.

   Int_t term
     Ignored parameter, provided for compatibility.

 Return code:
   none
Bool_t good(void)
 Return status of last operation.

 Input parameters:
   none

 Output parameters:
   none

 Return code:
   kTRUE, if last operation was successfull, kFALSE otherwise.
Bool_t eof(void)
 Check if filepointer has reachjed the end of file marker.

 Input parameters:
   none

 Output parameters:
   none

 Return code:
   kTRUE if accesspointer has reached the end of file marker, kFALSE otherwise.
Bool_t fail(void)
 Check for file status.

 Input parameters:
   none

 Output parameters:
   none

 Return code:
   kTRUE if last operation failed, kFALSE otherwise.
   File unusable if kTRUE!
Bool_t bad(void)
 Check for file status.

 Input parameters:
   none

 Output parameters:
   none

 Return code:
    kTRUE, if last operation failed, but error can be repaired,
    otherwise kFALSE.
Int_t rdstat(void)
 Return status.
 Check for file status.

 Input parameters:
   none

 Output parameters:
   none

 Return code:
   Status of file.
Int_t stat(Long_t* id, Long_t* size, Long_t* flags, Long_t* modtime)
 Get information about file.

 Input parameters:
   none

 Output parameters:
   Long_t* id
     Contains device descriptor in the bits above 24, and the inode of the
     file in the lower 24 bits.

   Long_t* size
      Size of the file in bytes.

   Long_t* flags
      Bitmask defining the file type:
       bit 0 set if owner has execute permission,
       bit 1 set if is a directory,
       bit 3 set if not a regular file and not a directory.

 Return code:
   0 on success, -1 otherwise.
Char_t * serror(void)
 Get the error message of the last operation.

 Input parameters:
   none

 Output parameters:
   none

 Return code:
   String describing error from last operation on file.
HRFIOFileTSM& operator>>(HRFIOFileTSM& u)
 Operator to write to the file. NOT IMPLEMENTED!

 Input Parameters:
   Buffer with data to be written to file.

 Output parameters:
   none

 Return code:
   Pointer to this object.
HRFIOFileTSM& operator<<(const HRFIOFileTSM& u)
 Operator to read from the file. NOT IMPLEMENTED!

 Input Parameters:
   none

 Output parameters:
   Buffer to store data from file into.

 Return code:
   Pointer to this object.
Int_t unlink(Char_t* name)
 Delete a file. NOT IMPLEMENTED

 Input parameters:
   Char_t* name
     Name of file to be deleted.

 Output parameters:
   none

  Return code:
    unknownw, as not implemented in underlying rfio code!
HRFIOFileTSM(const Char_t* name = "", Int_t mode = ios::in)

Last change: Sat May 22 13:07:54 2010
Last generated: 2010-05-22 13:07

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.