blob: 9316f71bdb31b68b07ceb38be8418ac874f16204 (
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
|
/*
* 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"
class ConsoleModel;
class ConsoleView;
class ConsoleController {
ControllerCallback * callback;
ConsoleView * consoleView;
ConsoleModel * consoleModel;
public:
bool HasDone;
ConsoleController(ControllerCallback * callback);
std::string FormatCommand(std::string command);
void EvaluateCommand(std::string command);
void NextCommand();
void PreviousCommand();
void Exit();
ConsoleView * GetView();
virtual ~ConsoleController();
};
#endif /* CONSOLECONTROLLER_H_ */
|