A module is typically comprised of multiple processes. This defines the essential qualities that constitute a process in UMPS. More...
#include "umps/modules/process.hpp"
Public Member Functions | |
IProcess () | |
Constructor. | |
virtual std::string | getName () const noexcept |
virtual void | operator() () |
Starts the process. More... | |
virtual void | start ()=0 |
Starts the process. | |
virtual void | stop ()=0 |
Stops the process. | |
virtual bool | isRunning () const noexcept=0 |
void | setStopCallback (const std::function< void()> &callback) |
Sets the stop callback if this process needs to stop the program. | |
void | issueStopCommand () |
Issues the stop command by calling the callback. More... | |
virtual | ~IProcess () |
Destructor. | |
A module is typically comprised of multiple processes. This defines the essential qualities that constitute a process in UMPS.
|
virtualnoexcept |
Reimplemented in UMPS::ProxyServices::Command::ReplierProcess, and UMPS::ProxyBroadcasts::Heartbeat::PublisherProcess.
|
pure virtualnoexcept |
Implemented in UMPS::ProxyServices::Command::ReplierProcess, and UMPS::ProxyBroadcasts::Heartbeat::PublisherProcess.
void UMPS::Modules::IProcess::issueStopCommand | ( | ) |
Issues the stop command by calling the callback.
setStopCallback()
was called.
|
virtual |
Starts the process.