TestForthIo Class Reference
[Test - Test code for forth virtual machine]

Inheritance diagram for TestForthIo:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void ConsoleOut (const CHAR *text, UCELL textLength)
void SetTestInput (const char *input)
virtual CELL ConsoleIn ()

Detailed Description

ForthIo implementation used for testing. This returns pre-determined text for ConsolIn which is set via SetTestInput.

Definition at line 109 of file forthtest.cpp.


Member Function Documentation

virtual void TestForthIo::ConsoleOut ( const CHAR text,
UCELL  textLength 
) [virtual]

Display a text string on the console. This is called by the forth words TYPE and EMIT.

Parameters:
text Pointer to string.
textLength Number of characters in string.

Implements ForthIo.

Definition at line 120 of file forthtest.cpp.

void TestForthIo::SetTestInput ( const char *  input  ) 

Set the sequence of characters which are to be returned by ConsoleIn.

Parameters:
input C string (NUL terminated list) of character values.

Definition at line 130 of file forthtest.cpp.

virtual CELL TestForthIo::ConsoleIn (  )  [virtual]

Get a single character from the console input. This is called by the forth word KEY.

Returns:
The character.

Implements ForthIo.

Definition at line 135 of file forthtest.cpp.


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

Generated by  doxygen 1.6.1