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

Jdb_dump Class Reference

#include <jdb_dump_i.h>

Inheritance diagram for Jdb_dump:

Jdb_module Jdb_table List of all members.

Public Member Functions

unsigned cols () const
unsigned rows () const
void draw_entry (unsigned row, unsigned col)
void print_statline ()
unsigned col_width (unsigned col) const
void print_statline (unsigned row, unsigned col)
Jdb_module::Action_code dump (Address virt, Task_num task, int level)
bool edit_entry (unsigned row, unsigned col, unsigned cx, unsigned cy)
unsigned key_pressed (int c, unsigned &row, unsigned &col)
Jdb_module::Action_code action (int cmd, void *&args, char const *&fmt, int &next_char)
 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.
 Jdb_dump ()

Private Types

enum  { B_MODE = 'b', C_MODE = 'c', D_MODE = 'd' }

Private Member Functions

Address virt (unsigned row, unsigned col)

Private Attributes

int level
Task_num task
char dump_type

Static Private Attributes

static char show_adapter_memory

Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
B_MODE 
C_MODE 
D_MODE 


Constructor & Destructor Documentation

Jdb_dump::Jdb_dump  ) 
 


Member Function Documentation

Jdb_module::Action_code Jdb_dump::action int  cmd,
void *&  args,
char const *&  fmt,
int &  next_char
[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_dump::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.

unsigned Jdb_dump::col_width unsigned  col  )  const [virtual]
 

Implements Jdb_table.

unsigned Jdb_dump::cols  )  const [inline, virtual]
 

Implements Jdb_table.

void Jdb_dump::draw_entry unsigned  row,
unsigned  col
[virtual]
 

Implements Jdb_table.

Jdb_module::Action_code Jdb_dump::dump Address  virt,
Task_num  task,
int  level
 

bool Jdb_dump::edit_entry unsigned  row,
unsigned  col,
unsigned  cx,
unsigned  cy
[virtual]
 

Reimplemented from Jdb_table.

unsigned Jdb_dump::key_pressed int  c,
unsigned &  row,
unsigned &  col
[virtual]
 

Reimplemented from Jdb_table.

int const Jdb_dump::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_dump::print_statline unsigned  row,
unsigned  col
[virtual]
 

Implements Jdb_table.

void Jdb_dump::print_statline  ) 
 

unsigned Jdb_dump::rows  )  const [inline, virtual]
 

Implements Jdb_table.

Address Jdb_dump::virt unsigned  row,
unsigned  col
[inline, private]
 


Member Data Documentation

char Jdb_dump::dump_type [private]
 

int Jdb_dump::level [private]
 

char Jdb_dump::show_adapter_memory [static, private]
 

Task_num Jdb_dump::task [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