-
Notifications
You must be signed in to change notification settings - Fork 0
/
ApplicationManager.h
49 lines (33 loc) · 1.1 KB
/
ApplicationManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef APPLICATION_MANAGER_H
#define APPLICATION_MANAGER_H
#include "Defs.h"
#include "GUI\Output.h"
#include "GUI\Input.h"
#include "Actions\Action.h"
#include "Components\Component.h"
//Main class that manages everything in the application.
class ApplicationManager
{
enum { MaxCompCount = 200 }; //Max no of Components
private:
int CompCount; //Actual number of Components
Component* CompList[MaxCompCount]; //List of all Components (Array of pointers)
Output* OutputInterface; //pointer to the Output Clase Interface
Input* InputInterface; //pointer to the Input Clase Interface
public:
public:
ApplicationManager(); //constructor
//Reads the required action from the user and returns the corresponding action type
ActionType GetUserAction();
//Creates an action and executes it
void ExecuteAction(ActionType);
void UpdateInterface(); //Redraws all the drawing window
//Gets a pointer to Input / Output Object
Output* GetOutput();
Input* GetInput();
//Adds a new component to the list of components
void AddComponent(Component* pComp);
//destructor
~ApplicationManager();
};
#endif