#include "hadascii.h"

HAsciiSectionList


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

class HAsciiSectionList : public TObject

Inheritance Chart:
TObject
<-
HAsciiSectionList
    private:
void InsertFirstNode(HAsciiSectionList::SectionNode* newnode) void InsertLastNode(HAsciiSectionList::SectionNode* newnode) void InsertNode(HAsciiSectionList::SectionNode* newnode) HAsciiSectionList::SectionNode* PreviousNode(HAsciiSectionList::SectionNode* refnode) void RemoveFirstNode() void RemoveLastNode() void RemoveNode() public:
HAsciiSectionList() HAsciiSectionList(HAsciiSectionList::SectionNode* init) HAsciiSectionList(const HAsciiSectionList& source) virtual ~HAsciiSectionList() void AfterLastNode() static TClass* Class() void InsertSection() virtual TClass* IsA() const Int_t NodeNumber() HAsciiSectionList& operator=(const HAsciiSectionList& source) void RemoveSection() void Reset() void RestoreThisNode() virtual void ShowMembers(TMemberInspector& insp, char* parent) void StoreThisNode() virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) HAsciiSectionList::SectionNode* ThisNode() HAsciiSection* ThisNodeSection() void ToFirstNode() void ToLastNode() HAsciiSectionList::SectionNode* ToNextNode() void ToNode(Int_t n) HAsciiSection* ToNodeSection(const Char_t* name = "0")

Data Members

    private:
Int_t fLock - auxiliaty variable (see fpOpenNode remark) HAsciiSectionList::SectionNode** fpTemp - auxiliary variable (see fpOpenNode remark) HAsciiSectionList::SectionNode** fpOpenNode HAsciiSectionList::SectionNode* fpFirstNode - first node in section list HAsciiSectionList::SectionNode* fpLastNode - last node in section list HAsciiSectionList::SectionNode* fpThisNode - current node in section list

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.


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

HAsciiSectionList() : fLock(0),fpFirstNode(NULL),fpLastNode(NULL),fpThisNode(NULL)
 Default contructor.

HAsciiSectionList(SectionNode* init) : fLock(0), fpFirstNode(init),fpLastNode(init),fpThisNode(init)
 Constructor for initialising section list with given node.

~HAsciiSectionList()
 Destructor removes section list and deletes all objects in nodes.

HAsciiSectionList(const HAsciiSectionList& source)

HAsciiSection* ThisNodeSection()
 It returns pointer to section of node pointed by fpThisNode (current
 list pointer) or NULL if fpThisNode is not set.

HAsciiSection* ToNodeSection(const Char_t* name)
 It returns pointer to section of given name and sets current fpThisNode
 to this node. If no name given, first node is returned.

Int_t NodeNumber()
 It  returns number of nodes = number of sections in list.

void ToFirstNode()
 It sets current pointer fpThisNode to the first node.

void ToLastNode()
 It sets fpThisNode to the end of list (last node).

void AfterLastNode()
 It sets fpThisNode to NULL what means position 'after last node in the list'.

void InsertSection()
 It creates a new node (with section) in position of list
 pointed by fpThisNode and assigns NULL values.

void InsertFirstNode(SectionNode* newnode)
 It inserts node at the beginning of list.

void InsertNode(SectionNode* newnode)
 It inserts node somewhere in the middle of list.

void InsertLastNode(SectionNode* newnode)
 It inserts node at the end of list.

void RemoveSection()
 It removes node pointed by fpThisNode from section list.

void RemoveFirstNode()
 It removes node if it is the first node in the list.

void RemoveLastNode()
 It removes node if it is the last node in the list.

void RemoveNode()
 It removes node which is in the middle of the list.

void ToNode(Int_t n)
 It goes to node number n, nodes are counted from 0 (1st node) etc.

void StoreThisNode()
 It stores in temporary stack the value of fpThisNode. Used if operations
 on the list in nested loops are performed and the value od current pointer
 needs to be conserved.

void RestoreThisNode()
 It restores the last stored value of fpThisNode.

void Reset()
 It resets all data (deletes list with its objects).



Inline Functions


        HAsciiSectionList::SectionNode* PreviousNode(HAsciiSectionList::SectionNode* refnode)
                     HAsciiSectionList& operator=(const HAsciiSectionList& source)
        HAsciiSectionList::SectionNode* ThisNode()
        HAsciiSectionList::SectionNode* ToNextNode()
                                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.