|
IFEM
90A354
|
This class enables simple application control over a FIFO. More...
#include <ControlFIFO.h>

Public Member Functions | |
| ControlFIFO () | |
| Default constructor. | |
| ~ControlFIFO () | |
| The destructor tears down the opened fifo and removes the file. | |
| void | registerCallback (ControlCallback &callback) |
| Registers a callback handler. More... | |
| bool | open (const char *name="ifem-control") |
| Opens the fifo and prepares for receiving. More... | |
| void | poll () |
| Polls for new data in the fifo. | |
Private Attributes | |
| std::string | fifo_name |
| Name of filesystem entry of our fifo. | |
| int | fifo |
| fifo handle | |
| std::map< std::string, ControlCallback * > | callbacks |
| Registered callbacks. | |
This class enables simple application control over a FIFO.
A fifo is opened, and users can write instructions to the fifo in XML format. These are then processed between time steps.
| bool ControlFIFO::open | ( | const char * | name = "ifem-control" | ) |
Opens the fifo and prepares for receiving.
| [in] | name | The name of the filesystem entry for the fifo |
References fifo, and fifo_name.
Referenced by IFEM::Init().
| void ControlFIFO::registerCallback | ( | ControlCallback & | callback | ) |
Registers a callback handler.
| [in] | callback | The callback handler to register |
References callbacks, and ControlCallback::GetContext().
Referenced by IFEM::registerCallback().