blob: a66e414126ccda26a3af788dd1b5d1f76b07051f (
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
|
#include "actions.hh"
#include "keytree.hh"
#include <string>
class parser {
public:
parser(keytree *);
~parser();
void parse(std::string);
void setKey(std::string key)
{ _key = key; }
void setArgument(std::string arg)
{ _arg = arg; }
void setAction(std::string);
void addModifier(std::string);
void endAction();
void startChain();
void setChainBinding();
void endChain();
private:
void reset();
keytree *_kt;
unsigned int _mask;
Action::ActionType _action;
std::string _key;
std::string _arg;
};
|