wxMaxima
Loading...
Searching...
No Matches
Data Structures | Public Member Functions | Static Public Member Functions
MaximaIPC Class Reference

Handles the "<ipc>" tag from Maxima. More...

#include <MaximaIPC.h>

Public Member Functions

 MaximaIPC (wxMaxima *wxm)
 
void ReadInputData (const wxString &data)
 Reads the interprocess communications tag, used in test scripts, etc.
 
bool DrainQueue ()
 Drains the event queue and dispatches a queued IPC event to its target.
 

Static Public Member Functions

static void EnableIPC ()
 
static bool GetEnableIPC ()
 

Detailed Description

Handles the "<ipc>" tag from Maxima.

This is used mainly for testing, so that Maxima can send synthetic events to wxMaxima.

Member Function Documentation

◆ DrainQueue()

bool MaximaIPC::DrainQueue ( )

Drains the event queue and dispatches a queued IPC event to its target.

Only one event is drained at a time. This method should be invoked from the idle loop, on the condition that the idle loop was about to sleep, i.e. there was no more work for it to do.

Returns
true if there was an event in the queue. This value is meant to re-schedule another idle event, so that the consequences of the event could be handled by the idle handler, and so that any potential other events could be subsequently drained.

◆ ReadInputData()

void MaximaIPC::ReadInputData ( const wxString &  data)

Reads the interprocess communications tag, used in test scripts, etc.

Since it may be unsafe, it must be enabled via command line.


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