HAsciiRaw
class description - source file - inheritance tree (.pdf)
private:
Bool_t ReadSectionRaw()
Bool_t RecogniseKeys(const Char_t* name, Int_t num = 0)
void Reset()
public:
HAsciiRaw()
HAsciiRaw(const HAsciiRaw& source)
virtual ~HAsciiRaw()
static TClass* Class()
Int_t GetCounter()
Bool_t GetData()
Char_t* GetKeyName(Int_t n = 0)
Int_t GetKeys()
Int_t GetKeyTypeId(Int_t n = 0)
Bool_t GetKeyword()
Long_t GetRowsNr()
Bool_t GetSection()
virtual TClass* IsA() const
HAsciiRaw& operator=(const HAsciiRaw& source)
Char_t ReadChar(Int_t col, Int_t raw)
Char_t ReadChar(const Char_t* keyname, Int_t raw)
Char_t ReadChar(Int_t colcond, Int_t rawvalue, Int_t col)
Char_t ReadChar(Int_t colcond, Int_t rawvalue, const Char_t* key)
Char_t ReadChar(const Char_t* keycond, Int_t rawvalue, const Char_t* key)
Bool_t ReadChar(Char_t* putin, Int_t col, Int_t number = 0)
Bool_t ReadChar(Char_t* putin, const Char_t* keyname, Int_t number = 0)
Bool_t ReadChar(Char_t* putin, Int_t col, Int_t begin, Int_t number)
Bool_t ReadChar(Char_t* putin, const Char_t* keyname, Int_t begin, Int_t number)
Bool_t ReadChar(TArrayC* putin, Int_t col, Int_t number = 0)
Bool_t ReadChar(TArrayC* putin, const Char_t* keyname, Int_t number = 0)
Bool_t ReadChar(TArrayC* putin, Int_t col, Int_t begin, Int_t number)
Bool_t ReadChar(TArrayC* putin, const Char_t* keyname, Int_t begin, Int_t number)
Float_t ReadFloat(Int_t col, Int_t raw)
Float_t ReadFloat(const Char_t* keyname, Int_t raw)
Float_t ReadFloat(Int_t colcond, Int_t rawvalue, Int_t col)
Float_t ReadFloat(Int_t colcond, Int_t rawvalue, const Char_t* key)
Float_t ReadFloat(const Char_t* keycond, Int_t rawvalue, Int_t col)
Float_t ReadFloat(const Char_t* keycond, Int_t rawvalue, const Char_t* key)
Bool_t ReadFloat(Float_t* putin, Int_t col, Int_t number = 0)
Bool_t ReadFloat(Float_t* putin, const Char_t* keyname, Int_t number = 0)
Bool_t ReadFloat(Float_t* putin, Int_t col, Int_t begin, Int_t number)
Bool_t ReadFloat(Float_t* putin, const Char_t* keyname, Int_t begin, Int_t number)
Bool_t ReadFloat(TArrayF* putin, Int_t col, Int_t number = 0)
Bool_t ReadFloat(TArrayF* putin, const Char_t* keyname, Int_t number = 0)
Bool_t ReadFloat(TArrayF* putin, Int_t col, Int_t begin, Int_t number)
Bool_t ReadFloat(TArrayF* putin, const Char_t* keyname, Int_t begin, Int_t number)
Int_t ReadInt(Int_t col, Int_t raw)
Int_t ReadInt(const Char_t* keyname, Int_t raw)
Int_t ReadInt(Int_t colcond, Int_t rawvalue, Int_t col)
Int_t ReadInt(Int_t colcond, Int_t rawvalue, const Char_t* key)
Int_t ReadInt(const Char_t* keycond, Int_t rawvalue, Int_t col)
Int_t ReadInt(const Char_t* keycond, Int_t rawvalue, const Char_t* key)
Bool_t ReadInt(Int_t* putin, Int_t col, Int_t number = 0)
Bool_t ReadInt(Int_t* putin, const Char_t* keyname, Int_t number = 0)
Bool_t ReadInt(Int_t* putin, Int_t col, Int_t begin, Int_t number)
Bool_t ReadInt(Int_t* putin, const Char_t* keyname, Int_t begin, Int_t number)
Bool_t ReadInt(TArrayI* putin, Int_t col, Int_t number = 0)
Bool_t ReadInt(TArrayI* putin, const Char_t* keyname, Int_t number = 0)
Bool_t ReadInt(TArrayI* putin, Int_t col, Int_t begin, Int_t number)
Bool_t ReadInt(TArrayI* putin, const Char_t* keyname, Int_t begin, Int_t number)
Bool_t ReadRawLine(Int_t row)
Char_t* ReadString(Int_t col, Int_t row)
Char_t* ReadString(const Char_t* keyname, Int_t row)
Char_t* ReadString(Int_t colcond, Int_t rowvalue, Int_t col)
Char_t* ReadString(Int_t colcond, Int_t rowvalue, const Char_t* key)
Char_t* ReadString(const Char_t* keycond, Int_t rowvalue, Int_t col)
Char_t* ReadString(const Char_t* keycond, Int_t rowvalue, const Char_t* key)
HAsciiSection* SetActiveSection(const Char_t* name)
void SetCounter(Int_t num)
void SetData(Bool_t val)
void SetKeyNr(Int_t num)
void SetKeyword(Bool_t val)
void SetReadKeyType(Int_t col, Int_t type)
void SetReadKeyTypes(Char_t key1)
void SetSection(Bool_t val)
void SetWriteKeyType(Int_t col, Int_t type)
void SetWriteKeyTypes(Char_t key1)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Bool_t WriteChar(Char_t num)
Bool_t WriteFloat(Float_t num)
Bool_t WriteInt(Int_t num)
Bool_t WriteKeywords(const Char_t* name)
Bool_t WriteKeywords(Int_t arg)
Bool_t WriteKeywords(const Char_t* sec, Int_t arg)
Bool_t WriteRawLine(Int_t first)
Bool_t WriteRawLine(Float_t first)
Bool_t WriteRawLine(Char_t first)
Bool_t WriteRawLine(const Char_t* first)
Bool_t WriteSection(const Char_t* name)
Bool_t WriteString(const Char_t* num)
private:
Int_t fKeys - number of keywords
Bool_t fSection - logical variable, true after writing section
Bool_t fKeywords - logical variable, true after writing keywords
Bool_t fData - logical variable, true after writing 1st and next lines of data
Int_t fCounter - auxiliary variable, number of digitis written in given line
public:
Int_t* fpKeyTypeId - array of type of data in given column
Char_t** fpKeyNames - array (of size fKeys) of array of keyword names
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.
***************************************************************************
HAsciiRaw() : HAscii()
Default constructor.
~HAsciiRaw()
Destructor, releases memory and resets data.
HAsciiRaw(const HAsciiRaw& source)
Int_t GetKeys()
Number of keywords (columns of data).
Int_t GetKeyTypeId(Int_t n)
Type of data for column n. -1 means type is not defined,
0 - Int_t, 1 - Float_t, 2 - Char_t.
Char_t* GetKeyName(Int_t n)
Keyword name for column n.
HAsciiSection* SetActiveSection(const Char_t* name)
Setting active section. During activation keywords are read and stored
and all raw data are scanned and stored as string variables containing
the subsequent columns of data.
Bool_t ReadSectionRaw()
It is called only from SetActiveSection. The function reads the whole
section - kewords and column data (automatically assigned to proper
keyword). The control of number of data in line with respect to number
of keywords is performed.
Long_t GetRowsNr()
Number of data units in column of raw data.
Int_t ReadInt(Int_t col, Int_t row)
Reading one Int_t digit from column col in position row.
Int_t ReadInt(const Char_t* keyname, Int_t row)
Reading one Int_t digit from column keyname in position row.
Int_t ReadInt(Int_t colcond, Int_t rowvalue, Int_t col)
Reading one Int_t digit from column col in the position described
by the condition: in column colcond find digit of value = rowvalue.
Int_t ReadInt(Int_t colcond, Int_t rowvalue, const Char_t* key)
Reading one Int_t digit from column key in the position described
by the condition: in column colcond find digit of value = rowvalue.
Int_t ReadInt(const Char_t* keycond, Int_t rowvalue, Int_t col)
Reading one Int_t digit from column col in the position described
by the condition: in column keycond find digit of value = rowvalue.
Int_t ReadInt(const Char_t* keycond, Int_t rowvalue, const Char_t* key)
Reading one Int_t digit from column key in the position described
by the condition: in column keycond find digit of value = rowvalue.
Bool_t ReadInt(Int_t* putin, Int_t col, Int_t begin, Int_t number)
Reading number of Int_t digits from column col starting from position begin.
Digits are put into Int_t array pointed by putin.
Bool_t ReadInt(Int_t* putin, const Char_t* keyname, Int_t begin, Int_t number)
Reading number of Int_t digits from column keyname starting from position begin.
Digits are put into Int_t array pointed by putin.
Bool_t ReadInt(Int_t* putin, Int_t col, Int_t number)
Reading number of Int_t digits from column col. If number = 0 all data are read.
Digits are put into Int_t array pointed by putin.
Bool_t ReadInt(Int_t* putin, const Char_t* keyname, Int_t number)
Reading number of Int_t digits from column keyname. If number = 0 all data are read.
Digits are put into Int_t array pointed by putin.
Bool_t ReadInt(TArrayI* putin, Int_t col, Int_t begin, Int_t number)
Reading number of Int_t digits from column col starting from position begin.
Digits are put into TArrayI pointed by putin.
Bool_t ReadInt(TArrayI* putin, const Char_t* keyname, Int_t begin, Int_t number)
Reading number of Int_t digits from column keyname starting from position begin.
Digits are put into TArrayI pointed by putin.
Bool_t ReadInt(TArrayI* putin, Int_t col, Int_t number)
Reading number of Int_t digits from column col. If number = 0 all data are read.
Digits are put into TArrayI pointed by putin.
Bool_t ReadInt(TArrayI* putin, const Char_t* keyname, Int_t number)
Reading number of Int_t digits from column keyname. If number = 0 all data are read.
Digits are put into TArrayI pointed by putin.
Float_t ReadFloat(Int_t col, Int_t row)
Reading one Float_t digit from column col in position row.
Float_t ReadFloat(const Char_t* keyname, Int_t row)
Reading one Float_t digit from column keyname in position row.
Float_t ReadFloat(Int_t colcond, Int_t rowvalue, Int_t col)
Reading one Float_t digit from column col in the position described
by the condition: in column colcond find digit of value = rowvalue.
Float_t ReadFloat(Int_t colcond, Int_t rowvalue, const Char_t* key)
Reading one Float_t digit from column key in the position described
by the condition: in column colcond find digit of value = rowvalue.
Float_t ReadFloat(const Char_t* keycond, Int_t rowvalue, Int_t col)
Reading one Float_t digit from column col in the position described
by the condition: in column keycond find digit of value = rowvalue.
Float_t ReadFloat(const Char_t* keycond, Int_t rowvalue, const Char_t* key)
Reading one Float_t digit from column key in the position described
by the condition: in column keycond find digit of value = rowvalue.
Bool_t ReadFloat(Float_t* putin, Int_t col, Int_t begin, Int_t number)
Reading number of Float_t digits from column col starting from position begin.
Digits are put into Int_t array pointed by putin.
Bool_t ReadFloat(Float_t* putin, const Char_t* keyname, Int_t begin, Int_t number)
Reading number of Float_t digits from column keyname starting from position begin.
Digits are put into Int_t array pointed by putin.
Bool_t ReadFloat(Float_t* putin, Int_t col, Int_t number)
Reading number of Float_t digits from column col. If number = 0 all data are read.
Digits are put into Int_t array pointed by putin.
Bool_t ReadFloat(Float_t* putin, const Char_t* keyname, Int_t number)
Reading number of Float_t digits from column keyname. If number = 0 all data are read.
Digits are put into Int_t array pointed by putin.
Bool_t ReadFloat(TArrayF* putin, Int_t col, Int_t begin, Int_t number)
Reading number of Float_t digits from column col starting from position begin.
Digits are put into TArrayI pointed by putin.
Bool_t ReadFloat(TArrayF* putin, const Char_t* keyname, Int_t begin, Int_t number)
Reading number of Float_t digits from column keyname starting from position begin.
Digits are put into TArrayI pointed by putin.
Bool_t ReadFloat(TArrayF* putin, Int_t col, Int_t number)
Reading number of Float_t digits from column col. If number = 0 all data are read.
Digits are put into TArrayI pointed by putin.
Bool_t ReadFloat(TArrayF* putin, const Char_t* keyname, Int_t number)
Reading number of Float_t digits from column keyname. If number = 0 all data are read.
Digits are put into TArrayI pointed by putin.
Char_t ReadChar(Int_t col, Int_t row)
Reading one Char_t character from column col in position row.
Char_t ReadChar(const Char_t* keyname, Int_t row)
Reading one Char_t character from column keyname in position row.
Char_t ReadChar(Int_t colcond, Int_t rowvalue, Int_t col)
Reading one Char_t character from column col in the position described
by the condition: in column colcond find digit of value = rowvalue.
Char_t ReadChar(Int_t colcond, Int_t rowvalue, const Char_t* key)
Reading one Char_t character from column key in the position described
by the condition: in column colcond find digit of value = rowvalue.
Char_t ReadChar(const Char_t* keycond, Int_t rowvalue, const Char_t* key)
Reading one Char_t character digit from column key in the position described
by the condition: in column keycond find digit of value = rowvalue.
Bool_t ReadChar(Char_t* putin, Int_t col, Int_t begin, Int_t number)
Reading number of Char_t characters from column col starting from position begin.
Digits are put into Char_t array pointed by putin.
Bool_t ReadChar(Char_t* putin, const Char_t* keyname, Int_t begin, Int_t number)
Reading number of Char_t characters from column keyname starting from position begin.
Digits are put into Char_t array pointed by putin.
Bool_t ReadChar(Char_t* putin, Int_t col, Int_t number)
Reading number of Char_t characters from column col. If number = 0 all data are read.
Digits are put into Char_t array pointed by putin.
Bool_t ReadChar(Char_t* putin, const Char_t* keyname, Int_t number)
Reading number of Char_t characters from column keyname. If number = 0 all data are read.
Digits are put into Char_t array pointed by putin.
Bool_t ReadChar(TArrayC* putin, Int_t col, Int_t begin, Int_t number)
Reading number of Char_t characters from column col starting from position begin.
Digits are put into TArrayC pointed by putin.
Bool_t ReadChar(TArrayC* putin, const Char_t* keyname, Int_t begin, Int_t number)
Reading number of Char_t characters from column keyname starting from position begin.
Digits are put into TArrayC pointed by putin.
Bool_t ReadChar(TArrayC* putin, Int_t col, Int_t number)
Reading number of Char_t characters from column col. If number = 0 all data are read.
Digits are put into TArrayC pointed by putin.
Bool_t ReadChar(TArrayC* putin, const Char_t* keyname, Int_t number)
Reading number of Char_t characters from column keyname. If number = 0 all data are read.
Digits are put into TArrayC pointed by putin.
Char_t* ReadString(Int_t col, Int_t row)
Reading string of characters from column col in position row.
Char_t* ReadString(const Char_t* keyname, Int_t row)
Reading string from column keyname in position row.
Char_t* ReadString(Int_t colcond, Int_t rowvalue, Int_t col)
Reading string from column col in the position described
by the condition: in column colcond find digit of value = rowvalue.
Char_t* ReadString(Int_t colcond, Int_t rowvalue, const Char_t* key)
Reading string from column key in the position described
by the condition: in column colcond find digit of value = rowvalue.
Char_t* ReadString(const Char_t* keycond, Int_t rowvalue, Int_t col)
Reading string from column col in the position described
by the condition: in column keycond find digit of value = rowvalue.
Char_t* ReadString(const Char_t* keycond, Int_t rowvalue, const Char_t* key)
Reading sitrng from column key in the position described
by the condition: in column keycond find digit of value = rowvalue.
Bool_t WriteSection(const Char_t* name)
Writing section name. Brackets [ ] are added automatically.
Bool_t RecogniseKeys(const Char_t* name, Int_t num)
Analysis of string line containing keywords, counting them and writing
their names into fpKeyNames array.
Bool_t WriteKeywords(const Char_t* name)
Writing keywords line.
Bool_t WriteKeywords(Int_t arg, ...)
Writing keywords, number of keywords arg and the keywords themselves (as strings)
are the arguments.
Bool_t WriteKeywords(const Char_t* sec, Int_t arg, ...)
Writing section sec and keywords (number of keywords is arg).
void SetReadKeyType(Int_t col, Int_t type)
This is auxiliary function used only in HParHadAsciiFileIo to have access
to private data member of this class.
void SetWriteKeyType(Int_t col, Int_t type)
This is auxiliary function used only in HParHadAsciiFileIo to have access
to private data member of this class.
void SetWriteKeyTypes(Char_t key1, ...)
Defining type of data for subsequent columns (described by keywords) to be written.
Allowed type of data are: 'i' - Int_t, 'f' - Float_t, 'c' - Char_t and 's' - string (Char_t*).
You can force changing type of column data calling this function.
void SetReadKeyTypes(Char_t key1, ...)
Defining type of data read for subsequent columns (described by keywords).
Active section must be selected first.
Allowed type of data are: 'i' - Int_t, 'f' - Float_t, 'c' - Char_t and
's' - string (Char_t*).
You can force changing type of column data calling this function.
Bool_t ReadRawLine(Int_t row, ...)
Reading of given row of raw data. The first argument is the 'row' number
and then pointers to variables of proper type should follow. It means
that the sequence of variables should be exactly of the same type as
declared for types of columns of data. For example:
ReadRawLine(5, &a, &b, &c);
where a, b, c, are variables of proper type.
Bool_t WriteRawLine(Int_t first, ...)
Writing line of data. The number and the type of arguments must be in agreement
with the number of columns (keywords) and their declared types. There is no type
control and user is fully responsible to put right arguments. (This function
is used in case of the first argument of Int_t type).
Bool_t WriteRawLine(Float_t first, ...)
Writing line of data. The number and the type of arguments must be in agreement
with the number of columns (keywords) and their declared types. There is no type
control and user is fully responsible to put right arguments. (This function
is used in case of the first argument of Float_t type).
Bool_t WriteRawLine(Char_t first, ...)
Writing line of data. The number and the type of arguments must be in agreement
with the number of columns (keywords) and their declared types. There is no type
control and user is fully responsible to put right arguments. (This function
is used in case of the first argument of Char_t type).
Bool_t WriteRawLine(const Char_t* first, ...)
Writing line of data. The number and the type of arguments must be in agreement
with the number of columns (keywords) and their declared types. There is no type
control and user is fully responsible to put right arguments. (This function
is used in case of the first argument of Char_t* type /string/).
Bool_t WriteInt(Int_t num)
Writing one Int_t digit. Number of units in line as well as their type
compared to number of keywords and types is controlled so break-line
is automatically done. If the type for given column of data was not
previously declared, it will be Int_t since now.
Bool_t WriteFloat(Float_t num)
Writing one Float_t digit. Number of units in line as well as their type
compared to number of keywords and types is controlled so break-line
is automatically done. If the type for given column of data was not
previously declared, it will be Float_t since now.
Bool_t WriteChar(Char_t num)
Writing one Char_t digit. Number of units in line as well as their type
compared to number of keywords and types is controlled so break-line
is automatically done. If the type for given column of data was not
previously declared, it will be Char_t since now.
Bool_t WriteString(const Char_t* num)
Writing a string. Number of units in line as well as their type
compared to number of keywords and types is controlled so break-line
is automatically done. If the type for given column of data was not
previously declared, it will be Char_t* (string) since now.
void Reset()
Resetting all data and releasing memory.
Inline Functions
HAsciiRaw& operator=(const HAsciiRaw& source)
Bool_t GetKeyword()
Bool_t GetSection()
Bool_t GetData()
Int_t GetCounter()
void SetCounter(Int_t num)
void SetKeyword(Bool_t val)
void SetSection(Bool_t val)
void SetData(Bool_t val)
void SetKeyNr(Int_t num)
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.