C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
UIController Class Reference

UIController is the abstract class that hosts all controller object in the Model-View-Controll design pattern. More...

#include <ui_core.h>

Inheritance diagram for UIController:
Inheritance graph
Collaboration diagram for UIController:
Collaboration graph

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

UIControlledModelcurrent_controlled_model {nullptr}
 The reference to the Model currently under control.
 

Detailed Description

UIController is the abstract class that hosts all controller object in the Model-View-Controll design pattern.

Member Function Documentation

◆ update_current_controlled_object()

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.

Parameters
_new_controlled_object
Here is the caller graph for this function:

The documentation for this class was generated from the following files: