page1
Data structure
Bool
error(string)
Control
Static function
Static Bool
open_file(string)
Static Bool
error(string)
Action A:
1. When Control is created, it allocates an interface instance depending of parameter Id_interface.
2. When destructor is called, Interface will be destroyed
Action C:
If an error occurs, Data structure or Parser call the Control static function error(), which forward the message to the Interface.
A.1
C.1
C.2
Fig. Communication between an Interface (terminal or graphic) and the Control
<<interface>>
Interface
Control(Id_interface)
~Control()
Parser
A.2
Action B:
If the user open a file, its path is forward to the Control by open_file(), than Control creates a new Parser instance.
B.1
B.2