AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
An abstract class which implements a DRAMA Parameter monitor in a thread.
The user can use an object implementing this class in an Action or UFace thread to monitor parameters in another task.
The constructor takes an initialiser list of the parameters to be monitored.
The user must implement the "ParameterChanged()" method to handle parameter changes.
The user must invoke the Run())method to run the monitor.
Monitors can be canceled if needed via the Cancel() method.
#include "threadmonitor.hh"
Public Member Functions | |
Monitor (const Monitor &source)=delete | |
Copy constructor - deleted. | |
Monitor (std::weak_ptr< Task > theTask, std::initializer_list< std::string > pars) | |
Create a Monitor object. | |
Monitor (std::weak_ptr< Task > theTask, std::vector< std::string > pars) | |
Create a Monitor object. | |
virtual | ~Monitor () |
Destructor. | |
void | Cancel () |
Cancel the monitor. | |
int | GetMonitorId () const |
Return the monitor ID. | |
bool | IsCancelling () const |
Indicate if the monitor is being canceled. | |
bool | IsRunning () const |
Indicate if the monitor is running. | |
Monitor & | operator= (const Monitor &rhs)=delete |
Assignment operator - deleted. | |
template<typename EventProcType = MonitorMessageHandler> | |
void | Run (Path *thePath, thread::TMessHandler *action) |
Run a monitor operation - handler by type. | |
void | Run (Path *thePath, thread::TMessHandler *action, MonitorMessageHandler *evtProcessor) |
Run a monitor operation - handler by address. | |
Protected Member Functions | |
virtual std::shared_ptr< Task > | GetTask () const |
Get a reference to the task we are part of. | |
virtual void | ParameterChanged (const sds::IdPtr &arg)=0 |
Abstract method invoked when a parameter is changed. | |
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tony.farrell@mq.edu.au
Generated on Thu Dec 12 2024 23:07:36 for AAO DRAMA/DRAMA2 C++ Interface by 1.9.8