C++ DevKit
C++ set of OOP library
|
UIController is the abstract class that hosts all controller object in the Model-View-Controll design pattern. More...
#include <ui_core.h>
Public Member Functions | |
UIController () | |
create a UIController object | |
~UIController () | |
Destroy the UIController object. | |
void | update_current_controlled_object (UIControlledModel *_new_controlled_object) |
if the current controlled object is different from _new_controlled_object, change the current controlled object this new one. By he same time, The controller of the new controlled object is updated. | |
Public Attributes | |
UIControlledModel * | current_controlled_model {nullptr} |
The reference to the Model currently under control. | |
UIController is the abstract class that hosts all controller object in the Model-View-Controll design pattern.
void UIController::update_current_controlled_object | ( | UIControlledModel * | _new_controlled_object | ) |
if the current controlled object is different from _new_controlled_object, change the current controlled object this new one. By he same time, The controller of the new controlled object is updated.
NOTICE: A controller can change its controlled object. This is why it must know what is the current controlled object and it may be usefull that the controlled object know which is its controller.
_new_controlled_object |