Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Jdb_category Class Reference

A category that may contain some Jdb_modules. More...

#include <jdb_module.h>

List of all members.

Public Member Functions

 Jdb_category (char const *name, char const *desc, unsigned order=0) FIASCO_INIT
 Create a new category.
char const *const name () const
 Get the name of this category.
char const *const description () const
 Get the description of this category.
Jdb_category const * next () const
 Get the next category.
Iterator modules () const
 Get all the modules within this category.

Static Public Member Functions

static Jdb_category const * find (char const *name, bool _default=false)
 Look for the category with the given name.
static Jdb_category const * first ()
 Get the first registered category.

Private Attributes

char const *const _name
char const *const _desc
unsigned const _order
Jdb_category_next

Static Private Attributes

static Jdb_category_first = 0

Classes

class  Iterator
 The iterator for iterating over all modules of a category. More...


Detailed Description

A category that may contain some Jdb_modules.

Each registered Jdb_module must be a member of one category. The help-module Help_m uses this categories for displaying sorted help.


Constructor & Destructor Documentation

static Jdb_category misc debugger Jdb_category::Jdb_category char const *  name,
char const *  desc,
unsigned  order = 0
 

Create a new category.

Parameters:
name the name of the new category, also used at Jdb_module creation (see Jdb_module::Jdb_module())
desc the short description of this category.
order the ordering number of the category.


Member Function Documentation

char const *const Jdb_category::description  )  const [inline]
 

Get the description of this category.

Jdb_category const * Jdb_category::find char const *  name,
bool  _default = false
[static]
 

Look for the category with the given name.

Parameters:
name the name of the category you are lokking for.
_default if set to true the default ("MISC") category is returned if no category with the given name is found.

Jdb_category const * Jdb_category::first  )  [inline, static]
 

Get the first registered category.

Jdb_category::Iterator Jdb_category::modules  )  const
 

Get all the modules within this category.

char const *const Jdb_category::name  )  const [inline]
 

Get the name of this category.

Jdb_category const * Jdb_category::next  )  const [inline]
 

Get the next category.


Member Data Documentation

char const* const Jdb_category::_desc [private]
 

Jdb_category * Jdb_category::_first = 0 [static, private]
 

char const* const Jdb_category::_name [private]
 

Jdb_category* Jdb_category::_next [private]
 

unsigned const Jdb_category::_order [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 26 14:20:15 2005 for Fiasco by  doxygen 1.4.2