Function memorysethandlermodule::mem_register_handler

Function Documentation

subroutine, public memorysethandlermodule::mem_register_handler (var_name, mem_path, handler, ctx)

Register the event handler and context for this variable.

The event handler and its ctx are called whenever the trigger is given by calling on_set_memory(). This allows to handle side effects, e.g. when a variable is from outside a class (the context) such as happens with the BMI.

Parameters
  • [in] var_name: the variable name

  • [in] mem_path: the memory path

  • handler: called after memory is set

  • ctx: the context with which the handler should be called