wxMaxima
Classes | Public Member Functions | Static Public Member Functions | List of all members
MaximaIPC Class Reference

#include <MaximaIPC.h>

Public Member Functions

 MaximaIPC (wxMaxima *wxm)
 
void ReadInputData (wxString &data)
 
bool DrainQueue ()
 

Static Public Member Functions

static void EnableIPC ()
 

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 ( 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: