8#ifndef _Belle2_Executor_h
9#define _Belle2_Executor_h
24 Executor(
const std::string& path) : m_path(path) {}
27 void setExecutable(
const char* format, ...);
28 void setExecutable(
const std::string& path);
29 void addArg(
const char* format, ...);
30 void addArg(
const std::string& arg);
31 void addArg(
int arg) { addArg(
"%d", arg); }
32 void addArg(
short arg) { addArg(
"%d", arg); }
33 void addArg(
float arg) { addArg(
"%f", arg); }
34 void addArg(
double arg) { addArg(
"%f", arg); }
35 bool execute(
bool isdaemon =
false);
39 std::vector<std::string> m_arg_v;
Abstract base class for different kinds of events.