QuercusVL Programming Manual
Close the system.
3.4.3. Events
In C++, an abstract class ISystemEH has been declared, where the declaration of the methods
that will handle the events is shown. An ISystemEH derived class must be created, and then
implement the corresponding methods of the events you wish to capture.
In C, the functions dealing with the events must be implemented according to the definition of
each one .
●
OnRealTimeInformation
C++:
void OnRealTimeInformation(RealTimeInformation info)
C:
void VL_OnRealTimeInformation(int hInfo)
Event launched for a real time event. The parameter “info” receives event data (check
“RealTimeInformation” class).
In C the parameter “hInfo” is a handler of RealTimeInformation. If you need to keep
hInfo element out of the function scope, VL_RealTimeInformation_AddRef should be
called to add a reference (see method AddRef from RealTimeInformation class), and
VL_RealTimeInformation_Release to remove the reference and free the allocated
memory, when it is no longer needed (see Release method from RealTimeInformation
class).
●
OnIncidence
C++:
void OnIncidence(Incidence incidence)
C:
void VL_OnIncidence(int hIncidence)
Event launched when a unit incidence is received. The parameter “incidence”, receives
event data (check “Incidence” class).
In C, the parameter “hIncidence” is a handler of Incidence. If you need to keep
hIncidence element out of the function scope, VL_Incidence_AddRef should be called to
add a reference (see method AddRef from Incidence class), and VL_Incidence_Release
to remove the reference and free the allocated memory, when it is no longer needed
(see Release method from Incidence class).
●
OnSummary
C++:
void OnSummary(Summary summary)
Quercus Technologies
29