blob: d5fc07acb4fb33048df7dfc38433408338c39990 (
plain)
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
|
/*
* ConsoleController.h
*
* Created on: Jan 31, 2012
* Author: Simon
*/
#ifndef CONSOLECONTROLLER_H_
#define CONSOLECONTROLLER_H_
#include <string>
#include "Controller.h"
#include "ConsoleView.h"
#include "ConsoleModel.h"
#include "ConsoleCommand.h"
#include "cat/CommandInterface.h"
class ConsoleModel;
class ConsoleView;
class ConsoleController {
ControllerCallback * callback;
ConsoleView * consoleView;
ConsoleModel * consoleModel;
CommandInterface * commandInterface;
public:
bool HasDone;
ConsoleController(ControllerCallback * callback, CommandInterface * commandInterface);
std::string FormatCommand(std::string command);
void EvaluateCommand(std::string command);
void NextCommand();
void PreviousCommand();
void Exit();
void CloseConsole();
ConsoleView * GetView();
virtual ~ConsoleController();
};
#endif /* CONSOLECONTROLLER_H_ */
|