22 lines
No EOL
534 B
C++
22 lines
No EOL
534 B
C++
#ifndef PROCESS_SERVICE_WRAPPER_HPP
|
|
#define PROCESS_SERVICE_WRAPPER_HPP
|
|
|
|
#include <cstdint>
|
|
|
|
namespace process::servicewrapper {
|
|
|
|
class ServiceWrapper {
|
|
public:
|
|
/**
|
|
* Tells the wrapper to run the service for execution.
|
|
* This will start the service run and will block until
|
|
* the service is done or died
|
|
* @returns exit code of service implementation; return value for service main
|
|
*/
|
|
virtual uint32_t run() const = 0;
|
|
virtual ~ServiceWrapper() = default;
|
|
};
|
|
|
|
}
|
|
|
|
#endif //!< PROCESS_SERVICE_WRAPPER_HPP
|