class TFIOElement: public TNamed, public TFHeader


  File:      TFIOElement.cpp

  Version:   1.0

  Author:    Reiner Rohlfs

  History:


Function Members (Methods)

public:
TFIOElement()
TFIOElement(const TFIOElement& ioelement)
TFIOElement(const char* name)
TFIOElement(const char* name, const char* fileName)
virtual~TFIOElement()
voidTObject::AbstractMethod(const char* method) const
virtual voidTFHeader::AddAttribute(const TFBaseAttr& attr, Bool_t replace = kTRUE)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual voidCloseElement()
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTFHeader::DelAttribute(const char* key, Int_t index = -1)
virtual voidTObject::Delete(Option_t* option = "")
virtual Int_tDeleteElement(Bool_t updateMemory = kFALSE)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
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)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual TFBaseAttr&TFHeader::GetAttribute(const char* key, UInt_t index = 0) const
virtual Int_tGetCompressionLevel()
virtual Int_tGetCycle() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*GetFileName() const
virtual const char*TObject::GetIconName() const
virtual const char*TNamed::GetName() const
virtual UInt_tTFHeader::GetNumAttributes(const char* key = NULL) 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*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
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() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tIsFileConnected() const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
virtual TFAttrIterTFHeader::MakeAttrIterator() const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
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)
virtual TFIOElement&operator=(const TFIOElement& ioelement)
virtual booloperator==(const TFHeader& ioelement) const
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual voidTFHeader::PrintH(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual Int_tSaveElement(const char* fileName = NULL, Int_t compLevel = -1)
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetCompressionLevel(Int_t level)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
voidSetFileAccess(FMode mode)
voidSetIO(TFVirtualIO* io)
virtual voidTNamed::SetName(const char* name)
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
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()
virtual voidNewFile(const char* fileName)
virtual voidUpdateMemory()

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:
list<TFBaseAttr*>TFHeader::fAttra list of attributes
FModefFileAccess!access to the file read, readwrite
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
TFVirtualIO*fio!interface to the file

Class Charts

Inheritance Chart:
TObject
TNamed
TFHeader
TFIOElement
TFBaseImage
TFImage<bool,BoolFormat>
TFImage<char,CharFormat>
TFImage<double,DoubleFormat>
TFImage<float,FloatFormat>
TFImage<int,IntFormat>
TFImage<short,ShortFormat>
TFImage<unsigned char,UCharFormat>
TFImage<unsigned int,UIntFormat>
TFImage<unsigned short,UShortFormat>
 [more...]

Function documentation

TFIOElement()
 Default constructor. The element is not associated with a element
 in a file.
 Don't use this constructor. The element should have at least a name.
TFIOElement(const char * name)
 The element is not associated with an element in a file.
 It exist only in memory. name is the id of the new element.
TFIOElement(const char* name, const char* fileName)
 A new element is created. It is associated with an element in a
 file. name is the id of the new element.
 fileName is the file name of the ASRO, ROOT or FITS file with this new
 element. The file  may already exist or will be created. Other objects
 with the same name can exist without problem in the same file. Each object
 with the same name has a unique cycle number. Use GetCycle() to ask for
 this cycle number. Use the function TFRead() to read and update an already
 existing element from a ASRO, a ROOT or a FITS file.
TFIOElement(const TFIOElement & ioelement)
 Copy constructor. But even if the input element is associated with an
 element in a file, this new table is NOT associated with this or
 an other element in a file. It will exist only in memory, but can be
 saved in a new file using the SaveElement() method.
~TFIOElement()
 The associated file is closed, the element is NOT updated. Use
 SaveElement() to update the changes in the file.
void NewFile(const char* fileName)
 protected function to create a new element in a file
Int_t SaveElement(const char* fileName = NULL, Int_t compLevel = -1)
 Updates the element in the file with the data of this element in
 memory. If fileName is defined the old file is closed and the element
 is written into this new file named fileName.
 compLevel defines the compression level in the ASRO or ROOT file. To set
 compLevel and to update the element in the same file set fileName
 to an empty string "".
 This function without any parameter has to be used to update the
 file with any change of the element in memory.
void CloseElement()
 Closes the element in the associated file. It does not update the
 element in the file. The element still exist in memory after
 a call of this function.
Int_t DeleteElement(Bool_t updateMemory = kFALSE)
 Deletes the element in the file, but not in memory.
 Closes the file and deletes the file if this element is the
 last element in the file.
 Updated the element in memory before the file is deleted if
 updateMemory is set to kTRUE. The default is kFALSE.
void Print(Option_t* option = "") const
  Prints Class name, name of object and file name and cycle number
  of object if if is connected to a file.
  Calls Print function of TFHeader to print the header attributes
void SetIO(TFVirtualIO* io)
{fio = io;}
void SetFileAccess(FMode mode)
{fFileAccess = mode;}
Bool_t IsFileConnected()
{return fio != NULL && fio->IsOpen();}
const char * GetFileName()
{return fio ? fio->GetFileName() : NULL;}
Int_t GetCycle()
{return fio ? fio->GetCycle() : 0;}
void SetCompressionLevel(Int_t level)
{if (fio) fio->SetCompressionLevel(level);}
Int_t GetCompressionLevel()
{return fio ? fio->GetCompressionLevel() : 0;}
void UpdateMemory()
{}

Last update: Fri Mar 14 13:55:16 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.