openMSX
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
openmsx::SettingsParser Struct Reference
Inheritance diagram for openmsx::SettingsParser:
Inheritance graph
[legend]
Collaboration diagram for openmsx::SettingsParser:
Collaboration graph
[legend]

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< Settingsettings
 
std::vector< HotKey::Databinds
 
std::vector< std::string_view > unbinds
 
std::vector< ShortcutItemshortcutItems
 
std::string_view systemID
 
unsigned unknownLevel = 0
 
enum openmsx::SettingsParser::State state = START
 
Setting currentSetting
 
HotKey::Data currentBind
 
std::string_view currentUnbind
 
ShortcutItem currentShortcut
 

Detailed Description

Definition at line 26 of file SettingsConfig.cc.

Member Enumeration Documentation

◆ State

Enumerator
START 
TOP 
SETTINGS 
SETTING 
BINDINGS 
BIND 
UNBIND 
SHORTCUTS 
SHORTCUT 
END 

Definition at line 53 of file SettingsConfig.cc.

Member Function Documentation

◆ attribute()

void openmsx::SettingsParser::attribute ( std::string_view  name,
std::string_view  value 
)

◆ doctype()

void openmsx::SettingsParser::doctype ( std::string_view  txt)

Definition at line 477 of file SettingsConfig.cc.

References systemID, and t.

◆ start()

void openmsx::SettingsParser::start ( std::string_view  tag)

◆ stop()

void openmsx::SettingsParser::stop ( )

◆ text()

void openmsx::SettingsParser::text ( std::string_view  txt)

Member Data Documentation

◆ binds

std::vector<HotKey::Data> openmsx::SettingsParser::binds

Definition at line 40 of file SettingsConfig.cc.

Referenced by openmsx::SettingsConfig::loadSetting(), and stop().

◆ currentBind

HotKey::Data openmsx::SettingsParser::currentBind

Definition at line 66 of file SettingsConfig.cc.

Referenced by attribute(), start(), stop(), and text().

◆ currentSetting

Setting openmsx::SettingsParser::currentSetting

Definition at line 65 of file SettingsConfig.cc.

Referenced by attribute(), start(), stop(), and text().

◆ currentShortcut

ShortcutItem openmsx::SettingsParser::currentShortcut

Definition at line 68 of file SettingsConfig.cc.

Referenced by attribute(), start(), stop(), and text().

◆ currentUnbind

std::string_view openmsx::SettingsParser::currentUnbind

Definition at line 67 of file SettingsConfig.cc.

Referenced by attribute(), start(), and stop().

◆ settings

std::vector<Setting> openmsx::SettingsParser::settings

Definition at line 39 of file SettingsConfig.cc.

Referenced by openmsx::SettingsConfig::loadSetting(), and stop().

◆ shortcutItems

std::vector<ShortcutItem> openmsx::SettingsParser::shortcutItems

Definition at line 47 of file SettingsConfig.cc.

Referenced by openmsx::SettingsConfig::loadSetting(), and stop().

◆ state

enum openmsx::SettingsParser::State openmsx::SettingsParser::state = START

Referenced by attribute(), start(), stop(), and text().

◆ systemID

std::string_view openmsx::SettingsParser::systemID

Definition at line 49 of file SettingsConfig.cc.

Referenced by doctype(), and openmsx::SettingsConfig::loadSetting().

◆ unbinds

std::vector<std::string_view> openmsx::SettingsParser::unbinds

Definition at line 41 of file SettingsConfig.cc.

Referenced by openmsx::SettingsConfig::loadSetting(), and stop().

◆ unknownLevel

unsigned openmsx::SettingsParser::unknownLevel = 0

Definition at line 52 of file SettingsConfig.cc.

Referenced by attribute(), start(), stop(), and text().


The documentation for this struct was generated from the following file: