VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 /******************************************************************************
6 ** $RCSfile: DtKeyMapRecord.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtKeyMapRecord_H_
14 #define DtKeyMapRecord_H_
15 
17 
18 namespace makArchives
19 {
23  {
24  public:
25 
26  typedef std::list<std::string> FunctionList;
27  typedef std::pair<FunctionList,FunctionList> UpDownFunctionLists;
28  typedef std::map<int, UpDownFunctionLists > KeyFunctionListMap;
29 
30 
33 
35  DtKeyMapRecord(const DtKeyMapRecord& copy);
36 
38  ~DtKeyMapRecord();
39 
41  DtKeyMapRecord& operator=(const DtKeyMapRecord& copy);
42 
43  const std::string& name() const;
44  void setName(const std::string& name);
45 
46  const KeyFunctionListMap& unmodifiedKeyMap() const;
47  KeyFunctionListMap& unmodifiedKeyMap();
48 
49  const KeyFunctionListMap& shiftKeyMap() const;
50  KeyFunctionListMap& shiftKeyMap();
51 
52  const KeyFunctionListMap& ctrlKeyMap() const;
53  KeyFunctionListMap& ctrlKeyMap();
54 
55  const KeyFunctionListMap& altKeyMap() const;
56  KeyFunctionListMap& altKeyMap();
57 
58  const KeyFunctionListMap& shiftCtrlKeyMap() const;
59  KeyFunctionListMap& shiftCtrlKeyMap();
60 
61  const KeyFunctionListMap& shiftAltKeyMap() const;
62  KeyFunctionListMap& shiftAltKeyMap();
63 
64  const KeyFunctionListMap& ctrlAltKeyMap() const;
65  KeyFunctionListMap& ctrlAltKeyMap();
66 
67  const KeyFunctionListMap& shiftCtrlAltKeyMap() const;
68  KeyFunctionListMap& shiftCtrlAltKeyMap();
69 
70 
71  protected:
72 
73  friend class boost::serialization::access;
74 
75  template <typename Archive>
76  void serialize(Archive& ar,unsigned int version)
77  {
78  ar & BOOST_SERIALIZATION_NVP(myName);
79 
80  ar & BOOST_SERIALIZATION_NVP(myUnmodifiedKeyMap);
81  ar & BOOST_SERIALIZATION_NVP(myShiftKeyMap);
82  ar & BOOST_SERIALIZATION_NVP(myCtrlKeyMap);
83  ar & BOOST_SERIALIZATION_NVP(myAltKeyMap);
84  ar & BOOST_SERIALIZATION_NVP(myShiftCtrlKeyMap);
85  ar & BOOST_SERIALIZATION_NVP(myShiftAltKeyMap);
86  ar & BOOST_SERIALIZATION_NVP(myCtrlAltKeyMap);
87  ar & BOOST_SERIALIZATION_NVP(myShiftCtrlAltKeyMap);
88  }
89 
90  protected:
91 
92  std::string myName;
101  };
102 }
103 
104 #endif
105 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)