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

Qmms::Log::RootCategory Class Reference

Extends Category to make a special category used as the root of the hierarchy. More...

#include <log.hh>

Inheritance diagram for Qmms::Log::RootCategory::

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

Public Methods

QString getRootName () const
 Accessor method. More...

 ~RootCategory ()
 Destructor deletes the only instance of this class. More...


Static Public Methods

RootCategory * instance ()
 Use this method to get a pointer to the only instance of this class. More...


Private Methods

 RootCategory ()
 Private constructor. More...


Static Private Attributes

const QString ROOTNAME
 the name of the root category (usually root. More...

const QString DEFAULT_LEVEL
 the default level of this root category. More...

RootCategory * theInstance
 Static pointer to a RootCategory object. More...


Detailed Description

Extends Category to make a special category used as the root of the hierarchy.


Constructor & Destructor Documentation

Qmms::Log::RootCategory::RootCategory   [private]
 

Private constructor.

Not accessible except by the instance() method.

Qmms::Log::RootCategory::~RootCategory  
 

Destructor deletes the only instance of this class.


Member Function Documentation

QString Qmms::Log::RootCategory::getRootName   const
 

Accessor method.

Returns:
the name of the only instance of this class

RootCategory* Qmms::Log::RootCategory::instance   [static]
 

Use this method to get a pointer to the only instance of this class.

Calls the private constructor if no object of this type yet exists, otherwise returns a pointer to the instance.


Member Data Documentation

const QString Qmms::Log::RootCategory::DEFAULT_LEVEL [static, private]
 

the default level of this root category.

const QString Qmms::Log::RootCategory::ROOTNAME [static, private]
 

the name of the root category (usually root.

RootCategory* Qmms::Log::RootCategory::theInstance [static, private]
 

Static pointer to a RootCategory object.

Used to ensure that no more than one RootCategory can be instantiated at any time.


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