Class CommandHandler

Class Documentation

class CommandHandler

Public Functions

inline explicit CommandHandler()
inline ~CommandHandler()
inline void Execute(const std::string &command, const std::chrono::milliseconds &timeout)

Executes a command in a child process.

Parameters:
  • command – The command to be executed.

  • timeout – Timeout for the command.

inline void Halt()
inline CommandState GetState()
inline std::string GetOutput()
inline std::string GetError()