r3model
oops/r3model.h
r3oops
Model Class
r3Root
R3CLID_ROOT
r3Model
R3CLID_MODEL - 6
int R3RegisterModelClass(R3APP *app);
R3MM_ADDDEPENDENT
ADDDEPENDENT
R3MM_ADDDEPENDENT
R3BOOL, TRUE if succesfully inserted
int, flags
int, model identifier
R3OBJ*, address of the dependant
rc = obj.ADDDEPENDENT(p1, p2, p3);
Insert dependant to the models dependant list. Typically dependant acts as 'view' of model-view concept. When one of the attributes of the model is changed, R3RM_UPDATE is sent to the all dependants of the model. The p3 parameter associated with the R3RM_UPDATE method identifies the attribute changed. The p2 parameter associated with the R3RM_UPDATE method identifies the model identifier that has been given as parameter p2 with the R3MM_ADDDEPENDENT method.
R3MM_REMOVEDEPENDENT
REMOVEDEPENDENT
R3MM_REMOVEDEPENDENT
R3BOOL, TRUE if dependant was succesfully removed
R3OBJ*, dependant to be removed
rc = obj.REMOVEDEPENDENT(p3);
Remove dependant (view) from models dependant list.
R3MM_CHANGED
CHANGED
R3MM_CHANGED
R3TAG*, tag list specifying attributes which has changed.
obj.CHANGED(p3);
Tell model that one of its state has changed. This causes the model object to send R3RM_UPDATE to all dependants.
Flags for ADDDEPNEDENT