60 auto ret = std::shared_ptr<CommandMonitor>(
new CommandMonitor(name));
62 ret->registerThread(ret);
98 std::cerr <<
"CommandMonitor::shutDown\n";
std::shared_ptr< CommandMonitor > CommandMonitorPtr
The Baseclass for all SoDa objects, and useful commonly used classes.
The Baseclass for all SoDa thread objects.
SoDa::CmdMBoxPtr cmd_stream
mailbox producing command stream from user
void subscribeToMailBoxes(const std::vector< SoDa::MailBoxBasePtr > &mailboxes)
connect to useful mailboxes.
void run()
Each thread object must define its "run" loop.
void execSetCommand(SoDa::CommandPtr cmd)
handle SET commands from the command channel
SoDa::CmdMBox::Subscription cmd_subs
mailbox subscription ID for command stream
CommandMonitor(const std::string &name)
void shutDown()
optional method that performs cleanup – may not delete.
void execRepCommand(SoDa::CommandPtr cmd)
handle Report commands from the command channel
void execGetCommand(SoDa::CommandPtr cmd)
execute GET commands from the command channel
static CommandMonitorPtr make(const std::string &name)
The Thread baseclass for all SoDa thread objects.
std::shared_ptr< Command > CommandPtr
std::shared_ptr< CmdMBox > CmdMBoxPtr