1 #ifndef UMPS_MODULES_PROCESS_HPP
2 #define UMPS_MODULES_PROCESS_HPP
5 namespace UMPS::Modules
19 [[nodiscard]]
virtual std::string
getName() const noexcept;
22 virtual
void operator()();
28 [[nodiscard]] virtual
bool isRunning() const noexcept = 0;
41 std::unique_ptr<IProcessImpl> pImpl;
A module is typically comprised of multiple processes. This defines the essential qualities that cons...
Definition: process.hpp:13
virtual bool isRunning() const noexcept=0
virtual std::string getName() const noexcept
virtual void start()=0
Starts the process.
void issueStopCommand()
Issues the stop command by calling the callback.
virtual void stop()=0
Stops the process.
void setStopCallback(const std::function< void()> &callback)
Sets the stop callback if this process needs to stop the program.