|
发表于 2009-9-22 06:20:34
|
显示全部楼层
Callbacks are used to add user specified actions for selected events, for example if we have memory, we can add pre_put callback to inject error data to be written in memory and post_put callback, to see the final contents beign written to memory. Callback functions are organized in classes so we can have array of callback objects, each object with it's own behavior. For specified example, the transactor calls the pre_put function of the head ellement of callback object's array, then transactor calls pre_put of the 2nd object e.t.c.
Factory is a class specified for customizing the vmm_data objects in a way, user wants, for example, adding special constraints. |
|