annotator/example/include/process/service_wrapper.hpp
Alexander Kobjolke 04b878f078 Initial version
2022-03-01 22:13:15 +01:00

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