YCLIMP
Yandex Command Line Interface Music Player
Loading...
Searching...
No Matches
XmlParser Class Reference

A convenient class to parse xml keybindings.
Uses opensource rapidxml libarary (xml lib is probably from there https://github.com/Fe-Bell/RapidXML) More...

#include <XmlParser.hpp>

Public Member Functions

void LoadBindings (const std::string &SW_Name, BindingMap &globalBindings, BindingMap &localBindingds)
 Load bindings(local & global). bindings - table with real key id <-> action name.
Uses mKeyNameToEnum to get real key id from key name.

Detailed Description

A convenient class to parse xml keybindings.
Uses opensource rapidxml libarary (xml lib is probably from there https://github.com/Fe-Bell/RapidXML)

  • Main method is LoadBindings that used once for each HotkeyComponent
  • 1) Has a table to bind key name to it's real key id in ncurses(xml table at xmlKeysIDFile)
  • 2) Has a table to bind action names with real key id
  • 3) XML file with actions binds action name with key name. (1)- helps to connect action names with real key ids

The documentation for this class was generated from the following files: