class TFFitsIO: public TFVirtualIO


  File:      TFFitsIO.cxx

  Version:   1.0

  Author:    Reiner Rohlfs (GADC)

  History:   1.0   13.08.03  first released version


Function Members (Methods)

public:
TFFitsIO()
TFFitsIO(const TFFitsIO&)
TFFitsIO(TFIOElement* element, const char* fileName)
TFFitsIO(TFIOElement* element, void* fptr, int cycle)
virtual~TFFitsIO()
static TClass*Class()
virtual voidCreateElement()
virtual Int_tDeleteColumn(const char* name)
virtual Int_tDeleteElement()
virtual voidGetColNames(map<TString,TNamed>& columns)
virtual Int_tGetCompressionLevel()
virtual Int_tGetCycle()
virtual const char*GetFileName()
virtual UInt_tGetNumColumns()
virtual TClass*IsA() const
virtual Bool_tIsOpen()
TFFitsIO&operator=(const TFFitsIO&)
virtual voidReadAllCol(ColList& columns)
virtual TFBaseCol*ReadCol(const char* name)
virtual Int_tSaveColumns(ColList& columns, Int_t compLevel = -1)
virtual Int_tSaveElement(Int_t compLevel = -1)
virtual voidSetCompressionLevel(Int_t level)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
static TFIOElement*TFRead(const char* fileName, const char* name, Int_t cycle = 0, FMode mode = kFRead, TClass* classType = NULL)

Data Members

protected:
intfCycle
TFIOElement*TFVirtualIO::fElementthe element associated with this IOfile
void*fFptr

Class Charts

Inheritance Chart:
TFVirtualIO
TFFitsIO

Function documentation

TFFitsIO(TFIOElement* element, const char* fileName)
 opens a file or creates a new file if the file does not exist and creates
 a new HDU in the FITS file.
TFFitsIO(TFIOElement* element, void* fptr, int cycle)
 constructor
~TFFitsIO()
 destructor
TFIOElement * TFRead(const char* fileName, const char* name, Int_t cycle = 0, FMode mode = kFRead, TClass* classType = NULL)
 tries to open an element in a FITS file and converts it into TFIOElement
 or one of its derived classes.
 In case there is a problem an Error is written to TFError and NULL is
 returned.
Bool_t IsOpen()
 return kTRUE if an element is successfull open
const char * GetFileName()
 returns the filename of an element.
 returns NULL if the element is not open or in case of a cfitsio error
Int_t GetCycle()
 returns the cycle number == HDU number.
 First element in FITS file (primary header) has cycle 1
void CreateElement()
 creates a new element
Int_t DeleteElement()
 deletes this HDU and deletes the file if if is the last HDU
 Note: cfitsio will replace the first HDU == primary array by
 an empty one if this primary array should be deleted.
Int_t SaveElement(Int_t compLevel = -1)
 saves the current element into the FITS file
TFFitsIO(const TFFitsIO& )
{}
TFFitsIO(TFIOElement* element, const char* fileName)
void SetCompressionLevel(Int_t level)
{}
Int_t GetCompressionLevel()
{return 0;}
UInt_t GetNumColumns()
 TFTable interface funmctions
TFBaseCol * ReadCol(const char* name)
void ReadAllCol(ColList& columns)
Int_t SaveColumns(ColList& columns, Int_t compLevel = -1)
Int_t DeleteColumn(const char* name)
void GetColNames(std::map<TString, TNamed> & columns)

Author: (GADC)
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.