AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ ParamChanged() [4/5]

virtual void drama::thread::MonitorByType::ParamChanged ( const std::string &  name,
long  value 
)
protectedvirtual

Method invoked when the value of a signed integer type parameter has been changed.

Invoked for any non-array parameter of SDS type SDS_BYTE, SDS_CHAR, SDS_INT, SDS_SHORT or SDS_I64.

But it will not be invoked for SDS_I64 if sizeof(long) is not at least 64 bits. Such a case suggests a design error (trying read 64 bit parameters from a 32 bit machine) so a DRAMA exception is thrown in those cases, with the DRAMA code DRAMA2__MON_INVTYPE64

The default implementation of this method will throw a DRAMA exception with the DRAMA code DRAMA2__MON_UNSUPTYPE. It is expected that the user will subclass this class to implement the required behaviors. But - if the sub-class has implemented the string version of ParamChanged(), that will be used in cases where the integer version is not implemented.

Parameters
nameThe name of the parameter the value of which has changed.
valueThe new value of the parameter.
Examples
monitor2.cpp.