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

◆ ParameterChanged()

virtual void drama::thread::Monitor::ParameterChanged ( const sds::IdPtr arg)
protectedpure virtual

Abstract method invoked when a parameter is changed.

This method is invoked each time a parameter changes. User sub-classes must implement this method, to handle the change as it prefers.

Parameters
argA pointer to the SDS structure with the new parameter value. The name of the item is the name of the parameter which has changed. Note, this SDS item will be deleted some time after this function returns when the sds::IdPtr releases, so don't try to save the referenced ID or an ID to any component, the item will disappear.
Instead, copy the sds::IdPtr (a shared pointer), the data or copy the SDS item into a new SDS item.

Implemented in drama::thread::MonitorToParam, and drama::thread::MonitorByType.