Pol  Revision:cb584c9
console.h
Go to the documentation of this file.
1 
2 #ifndef POL_CONSOLE_H
3 #define POL_CONSOLE_H
4 
5 #include <string>
6 
7 
8 namespace Pol
9 {
10 namespace Clib
11 {
12 class ConfigElem;
13 class KeyboardHook;
14 }
15 namespace Core
16 {
18 {
19 public:
20  ConsoleCommand( Clib::ConfigElem& elem, const std::string& cmd );
21  size_t estimateSize() const;
22  std::string showchar() const;
23 
24  char ch;
25  std::string script;
26  std::string description;
27 
28  static ConsoleCommand* find_console_command( char ch );
29  static void load_console_commands();
30  static void exec_console_cmd( char ch );
31 #ifdef _WIN32
32  static void check_console_commands();
33 #else
34  static void check_console_commands( Clib::KeyboardHook* kb );
35 #endif
36 
37  static bool console_locked;
38  static char unlock_char;
39 };
40 }
41 }
42 
43 #endif
static bool console_locked
Definition: console.h:37
static char unlock_char
Definition: console.h:38
std::string description
Definition: console.h:26
std::string script
Definition: console.h:25
Definition: berror.cpp:12