|
ProviewR Programmer's Reference Manual
V7.0.0
|
Baseclass for applications. More...
#include <rt_appl.h>
Public Member Functions | |
| rt_appl (const char *name, errh_eAnix anix, double scantime=1.0, qcom_sQid qid=qcom_cNQid) | |
| Constructor. More... | |
| virtual void | open () |
| Initialize the application. More... | |
| virtual void | close () |
| Closes the application. More... | |
| virtual void | scan () |
| Cyclic function. More... | |
Baseclass for applications.
rt_appl is a baseclass for applications, where the subclasses should implement the virtual functions open(), close() and scan().
| rt_appl::rt_appl | ( | const char * | name, |
| errh_eAnix | anix, | ||
| double | scantime = 1.0, |
||
| qcom_sQid | qid = qcom_cNQid |
||
| ) |
Constructor.
| name | Process name. |
| anix | Application index. |
| scantime | Scantime for call of the scan() function. |
| qid | Qcom queue identity. |
Definition at line 54 of file rt_appl.cpp.
|
virtual |
Closes the application.
the close() is called when a restart or stop event is received. It should unlink to all direct links.
Reimplemented in ra_appl.
Definition at line 194 of file rt_appl.cpp.
|
virtual |
Initialize the application.
The open() function is called after initialization, and may contain setup of direct links to objects and attributes in the realtime database.
The open() function is also called after a soft restart.
Reimplemented in ra_appl.
Definition at line 190 of file rt_appl.cpp.
|
virtual |
Cyclic function.
The scan() function is called cyclic with the scantime specified in the constructor. In this function all the control and supervision work of the application is placed.
Reimplemented in ra_appl.
Definition at line 198 of file rt_appl.cpp.