Itasca C++ Interface
Loading...
Searching...
No Matches
Public Member Functions | List of all members
fish::IInput Class Referenceabstract

This class provides FISH with input data. More...

#include <iinput.h>

Public Member Functions

virtual void debug (IDebug *fishdebug, const IString &message)=0
 
virtual IString checkIntrinsicPlugin ()=0
 Checks if the system supports FISH intrinsic plugins. Non-null string indicates error message.
 
virtual void poll ()=0
 
virtual itasca::IGUIInputgetIGUIInput ()=0
 Returns interface to graphics user interface input functionality. May return a null value.
 
virtual bool isTestMode ()=0
 Returns TRUE if command processing is in TEST mode.
 
virtual IString getInput (const IString &prompt, bool interactive)=0
 

Detailed Description

This class provides FISH with input data.

Member Function Documentation

◆ debug()

virtual void fish::IInput::debug ( IDebug * fishdebug,
const IString & message )
pure virtual

Stops FISH processing and waits, providing an IFishDebug interface to give the function implementation a chance to debug the FISH code. This interface can be used to query variables, step through the function, etc. This function is intended to be the main interface to a FISH debugger implemented by the program controlling FISH.

Parameters
fishdebugA pointer to the IFishDebug interface that will be used to control the debug session.
messageA message indicating why FISH processing was stopped and control passed to the debugger.

◆ getInput()

virtual IString fish::IInput::getInput ( const IString & prompt,
bool interactive )
pure virtual

Returns a single line of input from the current source. Will automatically pop the stack and use the next source if the current one runs out.

Parameters
promptThe prompt to use on the command line if appropriate.
interactiveTRUE if the FISH input source is considered "interactive", i.e. the next line from a data file is not appropriate.

◆ poll()

virtual void fish::IInput::poll ( )
pure virtual

Allows GUI to interrupt if necessary, will throw InterruptException(false) if indicated by the system. Quit command will throw an exception.


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