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

Jdb_list_timeouts Class Reference

#include <jdb_timeout_i.h>

Inheritance diagram for Jdb_list_timeouts:

Jdb_module List of all members.

Public Member Functions

 Jdb_list_timeouts ()
Jdb_module::Action_code action (int cmd, void *&, char const *&, int &)
 The actual handler of the module.
Jdb_module::Cmd const *const cmds () const
 The commands this module provides.
int const num_cmds () const
 The number of commands this modules provides.

Private Types

enum  { Timeout_ipc = 1, Timeout_deadline = 2, Timeout_timeslice = 3 }

Static Private Member Functions

static int get_type (Timeout *t)
static Threadget_owner (Timeout *t)
static void show_header ()
static void list_timeouts_show_timeout (Timeout *t)
static void list ()

Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
Timeout_ipc 
Timeout_deadline 
Timeout_timeslice 


Constructor & Destructor Documentation

Jdb_list_timeouts::Jdb_list_timeouts  ) 
 


Member Function Documentation

Jdb_module::Action_code Jdb_list_timeouts::action int  cmd,
void *&  ,
char const *&  ,
int & 
[virtual]
 

The actual handler of the module.

Parameters:
cmd the command ID (see Cmd::id) of the executed command.
args a reference to the argument buffer pointer.
fmt a reference to the format string pointer.
This method is pure virtual and must be provided by the specific derivate of the Jdb_module. action() is called if one of the module's commands was issued and the input according to the format string is read.

The args and fmt arguments are references because they may be modified by the action() method and extra input may be requested by returning Action_code::EXTRA_INPUT. In the case where Action_code::EXTRA_INPUT is returned the Jdb_core reads again the values according to the given format (fmt) and enters action(). With this mechanism it is possible to request further input depending on the already given input.

Implements Jdb_module.

Jdb_module::Cmd const *const Jdb_list_timeouts::cmds  )  const [virtual]
 

The commands this module provides.

An array of Cmd structures must be returned, where each entry describes a single command. The command IDs (see Cmd::id) should be unique within the module, so that action() can distinguish between the different commands.

See also:
num_cmds()

Cmd

action()

Implements Jdb_module.

Thread * Jdb_list_timeouts::get_owner Timeout t  )  [static, private]
 

int Jdb_list_timeouts::get_type Timeout t  )  [static, private]
 

void Jdb_list_timeouts::list  )  [static, private]
 

void Jdb_list_timeouts::list_timeouts_show_timeout Timeout t  )  [static, private]
 

int const Jdb_list_timeouts::num_cmds  )  const [virtual]
 

The number of commands this modules provides.

This method must return how many Cmd structures can be found in the array returned by cmds().

See also:
cmds()

Implements Jdb_module.

void Jdb_list_timeouts::show_header  )  [static, 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