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

◆ ParamChanged() [5/5]

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

Method invoked when the value of an unsigned integer type parameter has been changed.

Invoked for any non-array parameter of SDS type SDS_UBYTE, SDS_UINT, SDS_USHORT, SDS_UI64.

But it will not be invoked for SDS_UI64 if sizeof(unsigned long) is not at least 64 bits. Such a case suggests 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 unsigned integer version is not implemented.

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