src/plan/KeyDesc.h
raw| 1 | #ifndef HEADER_KEYDESC_H |
| 2 | #define HEADER_KEYDESC_H |
| 3 | |
| 4 | #include <string> |
| 5 | |
| 6 | /** |
| 7 | * Description of control key. |
| 8 | */ |
| 9 | class KeyDesc { |
| 10 | private: |
| 11 | int m_index; |
| 12 | std::string m_desc; |
| 13 | public: |
| 14 | KeyDesc(int index, const std::string &desc); |
| 15 | |
| 16 | int getIndex() const { return m_index; } |
| 17 | std::string getDesc() const { return m_desc; } |
| 18 | }; |
| 19 | |
| 20 | #endif |