33 Manager& schedule(
Process& process, high_resolution_clock::duration period);
41 Manager& run(high_resolution_clock::duration);
45 inline high_resolution_clock::time_point
start_time() {
return _start_time; }
49 inline high_resolution_clock::duration
elapsed() {
return _elapsed; }
56 Manager& watch(
string event_name, std::function<
void(
Event&)> handler);
58 Client& client() {
return _client; }
61 vector<Process *> _processes;
62 map<string, Channel *> _channels;
63 map<string, vector<std::function<void(Event&)>>> event_handlers;
64 high_resolution_clock::time_point _start_time;
65 high_resolution_clock::duration _elapsed;
The Process Manager class.
high_resolution_clock::duration elapsed()
An HTTP client for connecting to json services.
Events that can be emitted, watched, and responded to with event handlers.
high_resolution_clock::time_point start_time()
A channel for sending double values to and from Process objects.
Manager()
Default constructor.
An abstract base class for processes.