xoreos  0.0.5
console.h
Go to the documentation of this file.
1 /* xoreos - A reimplementation of BioWare's Aurora engine
2  *
3  * xoreos is the legal property of its developers, whose names
4  * can be found in the AUTHORS file distributed with this source
5  * distribution.
6  *
7  * xoreos is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 3
10  * of the License, or (at your option) any later version.
11  *
12  * xoreos is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with xoreos. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
25 #ifndef ENGINES_JADE_CONSOLE_H
26 #define ENGINES_JADE_CONSOLE_H
27 
28 #include <vector>
29 
31 
32 namespace Engines {
33 
34 namespace Jade {
35 
36 class JadeEngine;
37 
38 class Console : public ::Engines::Console {
39 public:
40  Console(JadeEngine &engine);
41  ~Console();
42 
43 
44 private:
46 
47  // Caches
48  std::vector<Common::UString> _modules;
49 
50 
51  // Updating the caches
52  void updateCaches();
53  void updateModules();
54 
55  // The commands
56  void cmdExitModule (const CommandLine &cl);
57  void cmdListModules(const CommandLine &cl);
58  void cmdLoadModule (const CommandLine &cl);
59 };
60 
61 } // End of namespace Jade
62 
63 } // End of namespace Engines
64 
65 #endif // ENGINES_JADE_CONSOLE_H
Console(JadeEngine &engine)
Definition: console.cpp:48
void cmdListModules(const CommandLine &cl)
Definition: console.cpp:81
JadeEngine * _engine
Definition: console.h:45
Generic Aurora engines (debug) console.
std::vector< Common::UString > _modules
All known modules.
Definition: console.h:48
void cmdLoadModule(const CommandLine &cl)
Definition: console.cpp:86
void cmdExitModule(const CommandLine &cl)
Definition: console.cpp:76