#include "hadascii.h"

HAsciiFile


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

class HAsciiFile : public TObject

Inheritance Chart:
TObject
<-
HAsciiFile
    private:
Char_t* ReadSectionComment(Int_t begin, Int_t end) public:
HAsciiFile() HAsciiFile(const HAsciiFile& source) virtual ~HAsciiFile() static TClass* Class() Bool_t CloseFile() Short_t GetFileChange() Short_t GetFileMode() Char_t* GetFileName() Long_t GetFileSize() Short_t GetFileState() Long_t GetPosition() Long_t GetPosNow() void InitSectionList() virtual TClass* IsA() const Bool_t OpenFile(const Char_t* filename) HAsciiFile& operator=(const HAsciiFile& source) void Reset() void SetFileChange(Short_t val) void SetFileMode(Short_t val) void SetFileName(const Char_t* nam) void SetFileSize() void SetFileState(Short_t val) void SetPosition(Long_t val) void SetPosNow(Long_t val) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Short_t fFileReadState Short_t fFileMode Short_t fFileChange Char_t fFileName[128] - file name Long_t fFileSize - file size Long_t fPosNow - indicator of current position while reading file Long_t fPosition - auxiliary storage variable public:
fstream fStreamFileRead - stream object handling file reading HAsciiSectionList fSectionList - list of sections for given file

Class Description


 HAsciiSectionRaw

 Internal class used only in case of reading data in "raw" format.
 It contains information of the structure of raw data like number
 of columns, keys (keywords) names, as well as all the data banks.


 ***************************************************************************

HAsciiFile() : fFileReadState(0), fFileMode(0), fFileChange(0), fFileSize(0), fPosNow(0), fPosition(0), fSectionList(NULL)
 Default constructor.

HAsciiFile(const HAsciiFile& source)

Short_t GetFileState()
 It returns file state, if file opened, it is 1.

Short_t GetFileMode()
 It is file mode which can be in fact only 1 (read-mode).

Short_t GetFileChange()
 It returns flag informing if the file was already scanned for sections.

Char_t* GetFileName()
 It returns file name.

Long_t GetFileSize()
 Here we have file size.

Long_t GetPosNow()
 Auxiliary function with read position.

Long_t GetPosition()
 Auxiliary function used in read functions.

Bool_t OpenFile(const Char_t* filename)
 It opens file - this function is called from another method in HAscii class.

Bool_t CloseFile()
 It closes file and deletes section list.

void SetFileState(Short_t val)
 Setting file state.

void SetFileMode(Short_t val)
 Setting file mode (it is obsolete; only 1 available because of read-mode,
 write-mode solved in another way).

void SetFileChange(Short_t val)
 Setting file change flag (if 1 then file should be scanned for sections).

void SetFileName(const Char_t* nam)
 Setting file name.

void SetFileSize()
 Setting file size.

void SetPosNow(Long_t val)
 Setting current position during reading.

void SetPosition(Long_t val)
 Setting position (auxiliary function).

void Reset()
 Resetting all data and section list (with deleting nodes).

Char_t* ReadSectionComment(Int_t begin, Int_t end)
 It returns commentary for section (if there is any).
 This function is called only from InitSectionList().

void InitSectionList()
 It reads  all sections in file and creates section list with section parameters.



Inline Functions


               void ~HAsciiFile()
        HAsciiFile& operator=(const HAsciiFile& source)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)


Author: Witold Przygoda (przygoda@psja1.if.uj.edu.pl)
Last update: 2001/08/20 by Witold Przygoda


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.