Launches and manages an OpenBW process.
More...
#include <openbwprocess.h>
Launches and manages an OpenBW process.
cherrypi::OpenBwProcess::OpenBwProcess |
( |
std::vector< EnvVar > const & |
vars | ) |
|
cherrypi::OpenBwProcess::OpenBwProcess |
( |
std::string |
bot, |
|
|
std::vector< EnvVar > const & |
vars |
|
) |
| |
cherrypi::OpenBwProcess::~OpenBwProcess |
( |
| ) |
|
Connect a TorchCraft client to this instance.
The timeout is passed to the client and the future to wait on openbw, and it is executed in sequence, so the total timeout might be 2 * timeout Returns whether the client connected successfully connected.
void cherrypi::OpenBwProcess::preventFurtherProcesses |
( |
| ) |
|
|
static |
No further forks will be started, and subsequent OpenBwProcess constructors will throw.
The documentation for this class was generated from the following files: