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
13 typedef TArrayAsVector<TKeyDef> keyArray;
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 
22        KeyMap(DWORD state, DWORD code);
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 };
37