openMSX
|
Classes | |
struct | Setting |
struct | ShortcutItem |
Public Types | |
enum | State { START , TOP , SETTINGS , SETTING , BINDINGS , BIND , UNBIND , SHORTCUTS , SHORTCUT , END } |
Public Member Functions | |
void | start (std::string_view tag) |
void | attribute (std::string_view name, std::string_view value) |
void | text (std::string_view txt) |
void | stop () |
void | doctype (std::string_view txt) |
Public Member Functions inherited from rapidsax::NullHandler | |
void | start (std::string_view) |
void | start (zstring_view) |
void | stop () |
void | text (std::string_view) |
void | text (zstring_view) |
void | attribute (std::string_view, std::string_view) |
void | attribute (zstring_view, zstring_view) |
void | cdata (std::string_view) |
void | cdata (zstring_view) |
void | comment (std::string_view) |
void | comment (zstring_view) |
void | declarationStart () |
void | declAttribute (std::string_view, std::string_view) |
void | declAttribute (zstring_view, zstring_view) |
void | declarationStop () |
void | doctype (std::string_view) |
void | doctype (zstring_view) |
void | procInstr (std::string_view, std::string_view) |
void | procInstr (zstring_view, zstring_view) |
Public Attributes | |
std::vector< Setting > | settings |
std::vector< HotKey::Data > | binds |
std::vector< std::string_view > | unbinds |
std::vector< ShortcutItem > | shortcutItems |
std::string_view | systemID |
unsigned | unknownLevel = 0 |
enum openmsx::SettingsParser::State | state = START |
Setting | currentSetting |
HotKey::Data | currentBind |
std::string_view | currentUnbind |
ShortcutItem | currentShortcut |
Definition at line 26 of file SettingsConfig.cc.
Enumerator | |
---|---|
START | |
TOP | |
SETTINGS | |
SETTING | |
BINDINGS | |
BIND | |
UNBIND | |
SHORTCUTS | |
SHORTCUT | |
END |
Definition at line 53 of file SettingsConfig.cc.
void openmsx::SettingsParser::attribute | ( | std::string_view | name, |
std::string_view | value | ||
) |
Definition at line 356 of file SettingsConfig.cc.
References BIND, currentBind, currentSetting, currentShortcut, currentUnbind, openmsx::HotKey::Data::event, openmsx::HotKey::Data::key, openmsx::Shortcuts::Shortcut::keyChord, openmsx::HotKey::Data::msx, openmsx::SettingsParser::Setting::name, openmsx::parseKeyChord(), openmsx::Shortcuts::parseType(), openmsx::HotKey::Data::repeat, SETTING, openmsx::SettingsParser::ShortcutItem::shortcut, SHORTCUT, state, StringOp::stringToBool(), openmsx::Shortcuts::Shortcut::type, UNBIND, and unknownLevel.
void openmsx::SettingsParser::doctype | ( | std::string_view | txt | ) |
Definition at line 477 of file SettingsConfig.cc.
void openmsx::SettingsParser::start | ( | std::string_view | tag | ) |
Definition at line 292 of file SettingsConfig.cc.
References BIND, BINDINGS, currentBind, currentSetting, currentShortcut, currentUnbind, END, SETTING, SETTINGS, SHORTCUT, SHORTCUTS, START, state, TOP, UNBIND, unknownLevel, and UNREACHABLE.
void openmsx::SettingsParser::stop | ( | ) |
Definition at line 425 of file SettingsConfig.cc.
References BIND, BINDINGS, binds, currentBind, currentSetting, currentShortcut, currentUnbind, END, openmsx::SettingsParser::ShortcutItem::id, openmsx::Shortcuts::INVALID, openmsx::HotKey::Data::key, openmsx::SettingsParser::Setting::name, SETTING, settings, SETTINGS, SHORTCUT, shortcutItems, SHORTCUTS, START, state, TOP, UNBIND, unbinds, unknownLevel, and UNREACHABLE.
void openmsx::SettingsParser::text | ( | std::string_view | txt | ) |
Definition at line 402 of file SettingsConfig.cc.
References BIND, openmsx::HotKey::Data::cmd, currentBind, currentSetting, currentShortcut, openmsx::SettingsParser::ShortcutItem::id, openmsx::Shortcuts::parseShortcutName(), SETTING, SHORTCUT, state, unknownLevel, and openmsx::SettingsParser::Setting::value.
std::vector<HotKey::Data> openmsx::SettingsParser::binds |
Definition at line 40 of file SettingsConfig.cc.
Referenced by openmsx::SettingsConfig::loadSetting(), and stop().
HotKey::Data openmsx::SettingsParser::currentBind |
Definition at line 66 of file SettingsConfig.cc.
Referenced by attribute(), start(), stop(), and text().
Setting openmsx::SettingsParser::currentSetting |
Definition at line 65 of file SettingsConfig.cc.
Referenced by attribute(), start(), stop(), and text().
ShortcutItem openmsx::SettingsParser::currentShortcut |
Definition at line 68 of file SettingsConfig.cc.
Referenced by attribute(), start(), stop(), and text().
std::string_view openmsx::SettingsParser::currentUnbind |
Definition at line 67 of file SettingsConfig.cc.
Referenced by attribute(), start(), and stop().
std::vector<Setting> openmsx::SettingsParser::settings |
Definition at line 39 of file SettingsConfig.cc.
Referenced by openmsx::SettingsConfig::loadSetting(), and stop().
std::vector<ShortcutItem> openmsx::SettingsParser::shortcutItems |
Definition at line 47 of file SettingsConfig.cc.
Referenced by openmsx::SettingsConfig::loadSetting(), and stop().
enum openmsx::SettingsParser::State openmsx::SettingsParser::state = START |
Referenced by attribute(), start(), stop(), and text().
std::string_view openmsx::SettingsParser::systemID |
Definition at line 49 of file SettingsConfig.cc.
Referenced by doctype(), and openmsx::SettingsConfig::loadSetting().
std::vector<std::string_view> openmsx::SettingsParser::unbinds |
Definition at line 41 of file SettingsConfig.cc.
Referenced by openmsx::SettingsConfig::loadSetting(), and stop().
unsigned openmsx::SettingsParser::unknownLevel = 0 |
Definition at line 52 of file SettingsConfig.cc.
Referenced by attribute(), start(), stop(), and text().