Canola  0.8.D001
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
interpose_ope Class Reference

#include <ope.h>

Inheritance diagram for interpose_ope:
interpose

List of all members.

Public Member Functions

virtual ~interpose_ope ()

Static Public Member Functions

static pointer create (calculator *subject)

Protected Member Functions

void on_opcode (opcode_t op, const location::pointer &where)
void on_error_v (const char *fmt, va_list ap)
bool strict_memory_number_checking_required (void) const

Private Member Functions

 interpose_ope (calculator *subject)
 interpose_ope ()
 interpose_ope (const interpose_ope &)
interpose_opeoperator= (const interpose_ope &)

Private Attributes

calculatorsubject

Detailed Description

The interpose_ope class is used to represent sending keystrokes to a calculator instance, when in Program Mode OPE state.

Definition at line 29 of file ope.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 22 of file ope.cc.

interpose_ope::interpose_ope ( calculator subject) [private]

The constructor.

Parameters:
subjectThe calculator instance to drive.

Definition at line 27 of file ope.cc.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

The create class method si sued to create new dynamically allocated istances of this class

Parameters:
subjectThe calculator instance to drive.

Definition at line 34 of file ope.cc.

void interpose_ope::on_error_v ( const char *  fmt,
va_list  ap 
) [protected, virtual]

The on_error_v method is used to report errors processing the key stream.

Parameters:
fmtThe format of the error. This controls the numer and types of the following arguments.
apThe following arguments.

Implements interpose.

Definition at line 48 of file ope.cc.

void interpose_ope::on_opcode ( opcode_t  op,
const location::pointer where 
) [protected, virtual]

The on_opcode method is used to process keys that have a corresponding opcode.

Parameters:
opThe opcode (usually a key stroke) of interest
whereThe source file location, or NULL if not available.

Implements interpose.

Definition at line 41 of file ope.cc.

interpose_ope& interpose_ope::operator= ( const interpose_ope ) [private]

The assignment operator. Do not use.

bool interpose_ope::strict_memory_number_checking_required ( void  ) const [protected, virtual]

The strict_memory_number_checking_required method is used to determine whether or not the number keys following M3~ keys (et al) must be followed by a digit key (true) or any key (false). The actual 1614P silently permits any key, and uses only the lower 4 bits.

Implements interpose.

Definition at line 55 of file ope.cc.


Member Data Documentation

The subject instance variable is used to remember the calculator we are to send keystrokes to.

Definition at line 70 of file ope.h.


The documentation for this class was generated from the following files: