SystemCall Class Reference

Executes a system call with multiple retries. More...

#include <SystemCall.h>

Public Member Functions

void set_retries (unsigned n)
 Set the number of retries.
 
void set_throw (bool flag)
 Throw an exception if the command returns a non-zero exit status.
 
int get_return_value () const
 Get the return value (exit status) of the last executed command.
 
void run (const std::string &)
 Run the given command. More...
 

Detailed Description

Executes a system call with multiple retries.

Member Function Documentation

◆ run()

void SystemCall::run ( const std::string &  command)

Run the given command.

If the command returns a non-zero exit status and throw_execption is true, then an exception is thrown.

Referenced by Tempo2::Generator::generate(), and Tempo::tempo().


The documentation for this class was generated from the following files:

Generated using doxygen 1.8.17