class TFAsroFile


  File:      TFAsroFile.cpp

  Version:   1.0

  Author:    Reiner Rohlfs (GADC)

  History:   1.0   14.07.03  first released version
             1.2   31.01.08  change TBuffer toTBufferFile


Function Members (Methods)

public:
TFAsroFile()
TFAsroFile(const TFAsroFile&)
TFAsroFile(const char* fileName, Bool_t* readOnly)
~TFAsroFile()
static TClass*Class()
boolDelete(const char* name, const char* subName, Int_t cycle)
boolFinishWrite()
const char*GetFileName()
UInt_tGetFreeCycle(const char* name)
UInt_tGetNextCycle(const char* name, Int_t cycle)
UInt_tGetNumItems()
UInt_tGetNumSubs(const char* name, Int_t cycle)
boolInitWrite()
virtual TClass*IsA() const
Bool_tIsOpen()
TFAsroColIter*MakeColIter(const char* name, Int_t cycle)
TFAsroElementIter*MakeElementIter()
voidMap()
TFAsroFile&operator=(const TFAsroFile&)
TObject*Read(const TFAsroKey& key)
TObject*Read(const char* name, const char* subName, Int_t cycle)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
boolWrite(TObject* obj, int compLevel, const char* name, const char* subName, Int_t cycle)
protected:
UInt_tGetFree(UInt_t size)
voidMakeFree(UInt_t pos, UInt_t size)

Data Members

protected:
vector<TString>fClassNames
UInt_tfDes[4]! position, length of fEntries,
map<TFAsroKey,TFAsroValue>fEntries
intfFile! file handler;
TStringfFileName! file name of this file
UInt_t*fFree! array of (pos, length) of free mem in file
UInt_tfFreeReserve! allocated memory for fFree;
vector<TString>fNames

Class Charts

Inheritance Chart:
TFAsroFile

Function documentation

TFAsroFile(const TFAsroFile& )
TFAsroFile(const char* fileName, Bool_t* readOnly)
  Opens or creates an ASRO file.
  First it tries to open read and write. If this is not possible
  and readOnly is set to kTRUE it tries to open also as readOnly.

  In any case readOnly is set to kFALSE if it was possible to
  open as readOnly, independent of the input value of readOnly.
  readOnly is unchanged (stay as kTRUE) if the file is opened as
  read only. If the file could not opened at all (either system
  error or it is read only, but it should be opened as read write)
  readOnly is not modified.

  If anything went wrong the file descriptor fFile is set to a value
  less than 0. If fFile >= 0 the calling function can assume that
  the file is succesfully open and can be used.
~TFAsroFile()
TObject * Read(const char* name, const char* subName, Int_t cycle)
 Returns the requested object, read from the file.
 If the retunr value is not NULL the calling function can assume that
 everything is OK.
TObject * Read(const TFAsroKey& key)
 Returns the requested object, read from the file.
 If the retunr value is not NULL the calling function can assume that
 everything is OK.
bool InitWrite()
bool Write(TObject* obj, int compLevel, const char* name, const char* subName, Int_t cycle)
bool FinishWrite()
bool Delete(const char* name, const char* subName, Int_t cycle)
UInt_t GetFree(UInt_t size)
void MakeFree(UInt_t pos, UInt_t size)
 find first free behind pos
UInt_t GetFreeCycle(const char* name)
UInt_t GetNumSubs(const char* name, Int_t cycle)
UInt_t GetNextCycle(const char* name, Int_t cycle)
 find the nameIndex in names
TFAsroColIter * MakeColIter(const char* name, Int_t cycle)
 find the nameIndex in names
TFAsroFile(const TFAsroFile& )
void Map()
Bool_t IsOpen()
{return fFile >= 0;}
const char * GetFileName()
{return fFileName.Data();}
UInt_t GetNumItems()
{return fEntries.size();}
TFAsroElementIter * MakeElementIter()
{return new TFAsroElementIter(&fEntries);}

Author: (GADC)
Last update: Fri Mar 14 13:55:06 2008

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.