Engine class.
More...
#include <zrt.hpp>
List of all members.
Classes |
class | Impl |
| Engine implementation class. More...
|
Public Types |
enum | Mode { mNone,
mHelp,
mRun,
mTest
} |
| The mode in which engine is running.
More...
|
Public Member Functions |
| Engine (int argc, char *argv[]) |
| Default constructor.
|
| ~Engine () |
| Destructor.
|
const Mode & | getMode () const |
| Get current engine mode.
|
int | init (int argc, char *argv[]) |
| Initialize the engine.
|
int | exit () |
| Exit the engine.
|
int | pump () |
| Pump current fibers in engine.
|
void | enque (RunContext &ctx) |
| Enque a run context.
|
void | registerOnExit (Continuation *continuation) |
| Register a continuation to run on exit.
|
Private Attributes |
Impl * | _impl |
| Instance of private implementation class.
|
Detailed Description
Member Enumeration Documentation
The mode in which engine is running.
- Enumerator:
mHelp |
Default value.
|
mRun |
Help mode.
|
mTest |
Run mode (usual case)
|
Constructor & Destructor Documentation
Engine |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Default constructor.
- Parameters:
-
argc | Argument count |
argv | Argument list |
Member Function Documentation
Enque a run context.
- Parameters:
-
ctx | The run context to enque |
Exit the engine.
- Returns:
- 0 on success, else error value
Get current engine mode.
- Returns:
- Engine mode
int init |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Initialize the engine.
- Parameters:
-
argc | Argument count |
argv | Argument list |
- Returns:
- 0 on success, else error value
Pump current fibers in engine.
- Returns:
- 0 on success, else error value
Register a continuation to run on exit.
- Parameters:
-
continuation | The continuation to run on exit |
The documentation for this class was generated from the following files:
- /home/renji/Data/projects/zenlang/sources/zbl/zrt.hpp
- /home/renji/Data/projects/zenlang/sources/zbl/zrt.cpp