VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtKeyMapRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtKeyMapRecord_H_
11 #define DtKeyMapRecord_H_
12 
14 
15 namespace makArchives
16 {
20  {
21  public:
22 
23  typedef std::list<std::string> FunctionList;
24  typedef std::pair<FunctionList,FunctionList> UpDownFunctionLists;
25  typedef std::map<int, UpDownFunctionLists > KeyFunctionListMap;
26 
27 
30 
32  DtKeyMapRecord(const DtKeyMapRecord& copy);
33 
35  ~DtKeyMapRecord();
36 
38  DtKeyMapRecord& operator=(const DtKeyMapRecord& copy);
39 
40  const std::string& name() const;
41  void setName(const std::string& name);
42 
43  const KeyFunctionListMap& unmodifiedKeyMap() const;
44  KeyFunctionListMap& unmodifiedKeyMap();
45 
46  const KeyFunctionListMap& shiftKeyMap() const;
47  KeyFunctionListMap& shiftKeyMap();
48 
49  const KeyFunctionListMap& ctrlKeyMap() const;
50  KeyFunctionListMap& ctrlKeyMap();
51 
52  const KeyFunctionListMap& altKeyMap() const;
53  KeyFunctionListMap& altKeyMap();
54 
55  const KeyFunctionListMap& shiftCtrlKeyMap() const;
56  KeyFunctionListMap& shiftCtrlKeyMap();
57 
58  const KeyFunctionListMap& shiftAltKeyMap() const;
59  KeyFunctionListMap& shiftAltKeyMap();
60 
61  const KeyFunctionListMap& ctrlAltKeyMap() const;
62  KeyFunctionListMap& ctrlAltKeyMap();
63 
64  const KeyFunctionListMap& shiftCtrlAltKeyMap() const;
65  KeyFunctionListMap& shiftCtrlAltKeyMap();
66 
67 
68  protected:
69 
70  friend class boost::serialization::access;
71 
72  template <typename Archive>
73  void serialize(Archive& ar,unsigned int version)
74  {
75  ar & BOOST_SERIALIZATION_NVP(myName);
76 
77  ar & BOOST_SERIALIZATION_NVP(myUnmodifiedKeyMap);
78  ar & BOOST_SERIALIZATION_NVP(myShiftKeyMap);
79  ar & BOOST_SERIALIZATION_NVP(myCtrlKeyMap);
80  ar & BOOST_SERIALIZATION_NVP(myAltKeyMap);
81  ar & BOOST_SERIALIZATION_NVP(myShiftCtrlKeyMap);
82  ar & BOOST_SERIALIZATION_NVP(myShiftAltKeyMap);
83  ar & BOOST_SERIALIZATION_NVP(myCtrlAltKeyMap);
84  ar & BOOST_SERIALIZATION_NVP(myShiftCtrlAltKeyMap);
85  }
86 
87  protected:
88 
89  std::string myName;
98  };
99 }
100 
101 #endif
102 
KeyFunctionListMap myAltKeyMap
Definition: DtKeyMapRecord.h:93
void serialize(Archive &ar, unsigned int version)
Definition: DtKeyMapRecord.h:73
std::pair< FunctionList, FunctionList > UpDownFunctionLists
Definition: DtKeyMapRecord.h:24
KeyFunctionListMap myCtrlAltKeyMap
Definition: DtKeyMapRecord.h:96
std::list< std::string > FunctionList
Definition: DtKeyMapRecord.h:23
A record saving the keyboard mapping.
Definition: DtKeyMapRecord.h:19
KeyFunctionListMap myShiftAltKeyMap
Definition: DtKeyMapRecord.h:95
Contains DLL export macros.
KeyFunctionListMap myShiftCtrlKeyMap
Definition: DtKeyMapRecord.h:94
KeyFunctionListMap myShiftKeyMap
Definition: DtKeyMapRecord.h:91
std::map< int, UpDownFunctionLists > KeyFunctionListMap
Definition: DtKeyMapRecord.h:25
std::string myName
Definition: DtKeyMapRecord.h:89
KeyFunctionListMap myUnmodifiedKeyMap
Definition: DtKeyMapRecord.h:90
KeyFunctionListMap myCtrlKeyMap
Definition: DtKeyMapRecord.h:92
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31
KeyFunctionListMap myShiftCtrlAltKeyMap
Definition: DtKeyMapRecord.h:97

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)