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  Bind
 
struct  Setting
 

Public Types

enum  State {
  START , TOP , SETTINGS , SETTING ,
  BINDINGS , BIND , UNBIND , 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 stop ()
 
void text (std::string_view)
 
void attribute (std::string_view, std::string_view)
 
void cdata (std::string_view)
 
void comment (std::string_view)
 
void declarationStart ()
 
void declAttribute (std::string_view, std::string_view)
 
void declarationStop ()
 
void doctype (std::string_view)
 
void procInstr (std::string_view, std::string_view)
 

Public Attributes

std::vector< Settingsettings
 
std::vector< Bindbinds
 
std::vector< std::string_view > unbinds
 
std::string_view systemID
 
unsigned unknownLevel = 0
 
enum openmsx::SettingsParser::State state = START
 
Setting currentSetting
 
Bind currentBind
 
std::string_view currentUnbind
 

Detailed Description

Definition at line 23 of file SettingsConfig.cc.

Member Enumeration Documentation

◆ State

Enumerator
START 
TOP 
SETTINGS 
SETTING 
BINDINGS 
BIND 
UNBIND 
END 

Definition at line 49 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 421 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<Bind> openmsx::SettingsParser::binds

Definition at line 43 of file SettingsConfig.cc.

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

◆ currentBind

Bind openmsx::SettingsParser::currentBind

Definition at line 60 of file SettingsConfig.cc.

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

◆ currentSetting

Setting openmsx::SettingsParser::currentSetting

Definition at line 59 of file SettingsConfig.cc.

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

◆ currentUnbind

std::string_view openmsx::SettingsParser::currentUnbind

Definition at line 61 of file SettingsConfig.cc.

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

◆ settings

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

Definition at line 36 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 45 of file SettingsConfig.cc.

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

◆ unbinds

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

Definition at line 44 of file SettingsConfig.cc.

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

◆ unknownLevel

unsigned openmsx::SettingsParser::unknownLevel = 0

Definition at line 48 of file SettingsConfig.cc.

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


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