ReactOS  0.4.12-dev-75-g00dd17e
tkeymap.h
Go to the documentation of this file.
1 #pragma once
2 
3 //#include "tkeydef.h"
4 
5 #ifdef __BORLANDC__
6 #include <classlib\arrays.h>
7 #else
8 #include <string>
9 #include "stl_bids.h"
10 #endif
11 
12 //AVS
14 
15 //AVS
16 // representation of keymap
17 struct KeyMap {
18  keyArray map; // keymap
19  string orig; // original string from .cfg file
20  TKeyDef key; // 'switch to' key
21 
23  KeyMap(): map(0,0,sizeof(TKeyDef)){};
24  KeyMap(TKeyDef&tk);
25  KeyMap(TKeyDef&tk, string&);
26  KeyMap(const string&t): map(0,0,sizeof(TKeyDef)), orig(t) {};
27  int operator==(const KeyMap & t) const;
28  KeyMap& operator = (const KeyMap& t);
29 
30 #ifndef __BORLANDC__
31  // The STL needs this (Paul Brannan 5/25/98)
32  friend bool operator<(const KeyMap &t1, const KeyMap &t2);
33 #endif
34 
35  ~KeyMap();
36 };
TArrayAsVector< TKeyDef > keyArray
Definition: tkeymap.h:13
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
friend bool operator<(const KeyMap &t1, const KeyMap &t2)
Definition: tkeymap.cpp:56
TKeyDef key
Definition: tkeymap.h:20
GLdouble GLdouble t
Definition: gl.h:2047
KeyMap(const string &t)
Definition: tkeymap.h:26
~KeyMap()
Definition: tkeymap.cpp:61
KeyMap()
Definition: tkeymap.h:23
unsigned long DWORD
Definition: ntddk_ex.h:95
int operator==(const KeyMap &t) const
Definition: tkeymap.cpp:44
static int state
Definition: maze.c:121
Definition: tkeymap.h:17
KeyMap & operator=(const KeyMap &t)
Definition: tkeymap.cpp:48
keyArray map
Definition: tkeymap.h:18
string orig
Definition: tkeymap.h:19