Motion Master
Loading...
Searching...
No Matches
MachineManager Class Reference

#include <machine_manager.h>

Public Member Functions

 MachineManager (mm::core::containers::ThreadSafeQueue< IncomingMachineMessage > &incoming_machine_message_queue, mm::core::containers::ThreadSafeQueue< OutgoingMachineMessage > &outgoing_machine_message_queue)
 ~MachineManager ()
void start ()
 Start the Machine Manager.
void stop ()
 Stop the Machine Manager.
void wait ()
 Wait until the Machine Manager finishes execution.
void setOnMonitoringAborted (std::function< void()> callback)
 Register a callback invoked whenever all monitoring is aborted.

Constructor & Destructor Documentation

◆ MachineManager()

MachineManager::MachineManager ( mm::core::containers::ThreadSafeQueue< IncomingMachineMessage > & incoming_machine_message_queue,
mm::core::containers::ThreadSafeQueue< OutgoingMachineMessage > & outgoing_machine_message_queue )

◆ ~MachineManager()

MachineManager::~MachineManager ( )

Member Function Documentation

◆ setOnMonitoringAborted()

void MachineManager::setOnMonitoringAborted ( std::function< void()> callback)

Register a callback invoked whenever all monitoring is aborted.

Called on device power-cycle or disconnection, immediately after MonitorMachine::abort_all_client_requests(). The callback runs on the machine manager thread and must be thread-safe.

Parameters
callbackCallable to invoke on abort; pass an empty std::function to unregister.

◆ start()

void MachineManager::start ( )

Start the Machine Manager.

◆ stop()

void MachineManager::stop ( )

Stop the Machine Manager.

◆ wait()

void MachineManager::wait ( )

Wait until the Machine Manager finishes execution.


The documentation for this class was generated from the following files: