Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

Qmms::Log::ProvisionNode Class Reference

Used as a placeholder in the Hierarchy, so that a Category can be created without first creating its parent. More...

#include <log.hh>

Inheritance diagram for Qmms::Log::ProvisionNode::

Qmms::Log::BaseCategory List of all members.

Public Methods

 ~ProvisionNode ()
 Destructor does nothing. More...

void addElement (const Category *cat)
 Adds a Category to the catList of categories provisionally held as children by this ProvisionNode. More...

CategoryelementAt (const uint index)
 Accesssor method into catList. More...

int getSize () const
 Accessor method. More...

bool isCategory ()
 Allows querying of the Hierarchy to determine what is a Category and what is not. More...


Public Attributes

QPtrList< CategorycatList
 Pointer-based doubly-linked list of categories that are the "children" of this PN and that become the children of the Category that this PN will turn into, if so requested. More...


Private Methods

 ProvisionNode ()
 Default constructor is private and does nothing. More...

 ProvisionNode (const QString name, const Category *cat)
 Constructor. More...


Friends

class Hierarchy
 Hierarchy is a friend because it must have access to private methods and members. More...


Detailed Description

Used as a placeholder in the Hierarchy, so that a Category can be created without first creating its parent.

In the case that a Category is created before its ancestor, a ProvisionNode is created that takes the place of the ancestor in the hierarchy.


Constructor & Destructor Documentation

Qmms::Log::ProvisionNode::ProvisionNode   [private]
 

Default constructor is private and does nothing.

Qmms::Log::ProvisionNode::ProvisionNode const QString    name,
const Category   cat
[private]
 

Constructor.

Makes a PN and places the given Category in its list of descendants.

Parameters:
name  the name of this PN
cat  the child Category

Qmms::Log::ProvisionNode::~ProvisionNode  
 

Destructor does nothing.


Member Function Documentation

void Qmms::Log::ProvisionNode::addElement const Category   cat
 

Adds a Category to the catList of categories provisionally held as children by this ProvisionNode.

Parameters:
cat  pointer to the Category to be added to the list

Category* Qmms::Log::ProvisionNode::elementAt const uint    index
 

Accesssor method into catList.

Parameters:
index  the place of the desired element
Returns:
pointer to the desired Category

int Qmms::Log::ProvisionNode::getSize   const
 

Accessor method.

Returns:
the number of Categories in the catList, i.e., the number of descendants of this PN.

bool Qmms::Log::ProvisionNode::isCategory   [virtual]
 

Allows querying of the Hierarchy to determine what is a Category and what is not.

Returns:
false since ProvisionNodes are not Categories

Reimplemented from Qmms::Log::BaseCategory.


Friends And Related Function Documentation

friend class Hierarchy [friend]
 

Hierarchy is a friend because it must have access to private methods and members.


Member Data Documentation

QPtrList< Category > Qmms::Log::ProvisionNode::catList
 

Pointer-based doubly-linked list of categories that are the "children" of this PN and that become the children of the Category that this PN will turn into, if so requested.


The documentation for this class was generated from the following file:
Generated on Fri Jan 3 15:04:06 2003 for QmmsLog by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001