|
openMSX
|
#include <CommandLineParser.hh>


Classes | |
| struct | OptionData |
Public Types | |
| enum | ParseStatus { UNPARSED, RUN, CONTROL, TEST, EXIT } |
| enum | ParsePhase { PHASE_BEFORE_INIT, PHASE_INIT, PHASE_BEFORE_SETTINGS, PHASE_LOAD_SETTINGS, PHASE_BEFORE_MACHINE, PHASE_LOAD_MACHINE, PHASE_EXT, PHASE_LAST } |
| typedef std::vector< std::string > | Scripts |
Public Member Functions | |
| CommandLineParser (Reactor &reactor) | |
| ~CommandLineParser () | |
| void | registerOption (const char *str, CLIOption &cliOption, ParsePhase phase=PHASE_LAST, unsigned length=2) |
| void | registerFileClass (const char *str, CLIFileType &cliFileType) |
| void | parse (int argc, char **argv) |
| ParseStatus | getParseStatus () const |
| const Scripts & | getStartupScripts () const |
| MSXMotherBoard * | getMotherBoard () const |
| GlobalCommandController & | getGlobalCommandController () const |
| bool | isHiddenStartup () const |
| Need to suppress renderer window on startup? | |
Friends | |
| class | ControlOption |
| class | HelpOption |
| class | VersionOption |
| class | MachineOption |
| class | SettingOption |
| class | TestConfigOption |
| class | BashOption |
Additional Inherited Members |
Definition at line 39 of file CommandLineParser.hh.
| typedef std::vector<std::string> openmsx::CommandLineParser::Scripts |
Definition at line 62 of file CommandLineParser.hh.
| PHASE_BEFORE_INIT | |
| PHASE_INIT | |
| PHASE_BEFORE_SETTINGS | |
| PHASE_LOAD_SETTINGS | |
| PHASE_BEFORE_MACHINE | |
| PHASE_LOAD_MACHINE | |
| PHASE_EXT | |
| PHASE_LAST |
Definition at line 43 of file CommandLineParser.hh.
Definition at line 42 of file CommandLineParser.hh.
|
explicit |
Definition at line 153 of file CommandLineParser.cc.
References PHASE_BEFORE_INIT, PHASE_BEFORE_MACHINE, PHASE_BEFORE_SETTINGS, registerFileClass(), and registerOption().
| openmsx::CommandLineParser::~CommandLineParser | ( | ) |
Definition at line 200 of file CommandLineParser.cc.
| GlobalCommandController & openmsx::CommandLineParser::getGlobalCommandController | ( | ) | const |
Definition at line 438 of file CommandLineParser.cc.
References openmsx::Reactor::getGlobalCommandController().
Referenced by openmsx::CassettePlayerCLI::parseFileType(), openmsx::SaveStateCLI::parseFileType(), openmsx::LaserdiscPlayerCLI::parseFileType(), openmsx::ReplayCLI::parseFileType(), openmsx::HDImageCLI::parseOption(), openmsx::CDImageCLI::parseOption(), and openmsx::ControlOption::parseOption().
| MSXMotherBoard * openmsx::CommandLineParser::getMotherBoard | ( | ) | const |
Definition at line 433 of file CommandLineParser.cc.
References openmsx::Reactor::getMotherBoard().
Referenced by openmsx::CliExtension::parseOption().
| CommandLineParser::ParseStatus openmsx::CommandLineParser::getParseStatus | ( | ) | const |
Definition at line 422 of file CommandLineParser.cc.
References UNPARSED.
Referenced by openmsx::Reactor::run().
| const CommandLineParser::Scripts & openmsx::CommandLineParser::getStartupScripts | ( | ) | const |
Definition at line 428 of file CommandLineParser.cc.
Referenced by openmsx::Reactor::run().
| bool openmsx::CommandLineParser::isHiddenStartup | ( | ) | const |
Need to suppress renderer window on startup?
Definition at line 417 of file CommandLineParser.cc.
| void openmsx::CommandLineParser::parse | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 301 of file CommandLineParser.cc.
References openmsx::GlobalCliComm::addListener(), CONTROL, EXIT, openmsx::Reactor::getCliComm(), openmsx::FileOperations::getConventionalPath(), openmsx::Reactor::getGlobalCliComm(), openmsx::Reactor::getGlobalCommandController(), openmsx::GlobalCommandController::getInterpreter(), openmsx::Reactor::getMachineSetting(), openmsx::MSXException::getMessage(), openmsx::SettingImpl< POLICY >::getRestoreValueString(), openmsx::GlobalCommandController::getSettingsConfig(), openmsx::SettingImpl< POLICY >::getValueString(), openmsx::Interpreter::init(), openmsx::Reactor::init(), PHASE_BEFORE_INIT, PHASE_INIT, PHASE_LAST, PHASE_LOAD_MACHINE, PHASE_LOAD_SETTINGS, openmsx::CliComm::printInfo(), openmsx::CliComm::printWarning(), RUN, openmsx::Reactor::switchMachine(), TEST, and xrange().
| void openmsx::CommandLineParser::registerFileClass | ( | const char * | str, |
| CLIFileType & | cliFileType | ||
| ) |
Definition at line 214 of file CommandLineParser.cc.
Referenced by openmsx::CassettePlayerCLI::CassettePlayerCLI(), CommandLineParser(), openmsx::DiskImageCLI::DiskImageCLI(), openmsx::LaserdiscPlayerCLI::LaserdiscPlayerCLI(), openmsx::MSXRomCLI::MSXRomCLI(), openmsx::ReplayCLI::ReplayCLI(), and openmsx::SaveStateCLI::SaveStateCLI().
| void openmsx::CommandLineParser::registerOption | ( | const char * | str, |
| CLIOption & | cliOption, | ||
| ParsePhase | phase = PHASE_LAST, |
||
| unsigned | length = 2 |
||
| ) |
Definition at line 204 of file CommandLineParser.cc.
Referenced by openmsx::CassettePlayerCLI::CassettePlayerCLI(), openmsx::CDImageCLI::CDImageCLI(), openmsx::CliExtension::CliExtension(), CommandLineParser(), openmsx::DiskImageCLI::DiskImageCLI(), openmsx::HDImageCLI::HDImageCLI(), openmsx::LaserdiscPlayerCLI::LaserdiscPlayerCLI(), openmsx::MSXRomCLI::MSXRomCLI(), openmsx::ReplayCLI::ReplayCLI(), and openmsx::SaveStateCLI::SaveStateCLI().
|
friend |
Definition at line 126 of file CommandLineParser.hh.
|
friend |
Definition at line 120 of file CommandLineParser.hh.
|
friend |
Definition at line 121 of file CommandLineParser.hh.
|
friend |
Definition at line 123 of file CommandLineParser.hh.
|
friend |
Definition at line 124 of file CommandLineParser.hh.
|
friend |
Definition at line 125 of file CommandLineParser.hh.
|
friend |
Definition at line 122 of file CommandLineParser.hh.
1.8.1.2