#include "commands.h"#include <cstring>#include <iostream>#include <sstream>#include <stack>#include "error.h"Include dependency graph for commands.cpp:

Go to the source code of this file.
Namespaces | |
| namespace | atlas |
| namespace | atlas::commands |
Functions | |
| void | ambiguous (const std::vector< const char * > &, const char *) |
| void | execute (const char *name, const CommandMode *mode) |
| const char * | getCommand (const CommandMode *mode) |
| std::istream & | getInteractive (std::istream &, std::string &, const char *) |
| bool | isEqual (const char *a, const char *b) |
| bool | isInitial (const char *a, const char *b) |
| void | activate (const CommandMode &mode) |
| void | addCommands (CommandMode &dest, const CommandMode &source) |
| CheckResult | checkName (const CommandMode &mode, const char *name) |
| input::InputBuffer & | currentLine () |
| const CommandMode * | currentMode () |
| void | defaultError (const char *str) |
| void | exitInteractive () |
| void | exitMode () |
| void | insertTag (TagDict &t, const char *name, const char *tag) |
| void | printTags (std::ostream &strm, const TagDict &t) |
| void | run (const CommandMode &initMode) |
| void | ambiguous (const std::vector< const char * > &ext, const char *name) |
| void | execute (const char *name, const CommandMode *mode) |
| Execute the command "name". Also install default error handling. | |
| const char * | getCommand (const CommandMode *mode) |
| std::istream & | getInteractive (std::istream &strm, std::string &name, const char *prompt) |
Variables | |
| std::stack< const CommandMode * > | modeStack |
| std::stack< const char * > | commandStack |
| input::InputBuffer | commandLine |
| bool | runFlag |
|
|
Definition at line 254 of file commands.cpp. References atlas::commands::CommandMode::entry(), and atlas::modeStack. Referenced by atlas::execute(), atlas::help_f(), atlas::realform_f(), atlas::commands::run(), and atlas::type_f(). |
|
||||||||||||
|
Definition at line 270 of file commands.cpp. References atlas::commands::CommandMode::add(), atlas::commands::CommandMode::begin(), and atlas::commands::CommandMode::end(). Referenced by atlas::blockmode::blockMode(), atlas::mainmode::mainMode(), and atlas::realmode::realMode(). |
|
||||||||||||
|
Definition at line 469 of file commands.cpp. References atlas::commands::CommandMode::end(). |
|
||||||||||||
|
Referenced by atlas::commands::checkName(), and atlas::commands::run(). |
|
||||||||||||
|
Definition at line 280 of file commands.cpp. References atlas::ambiguous(), atlas::commands::CheckResult, atlas::commands::CommandMode::end(), atlas::commands::CommandMode::extensions(), and atlas::commands::CommandMode::findName(). |
|
|
Definition at line 303 of file commands.cpp. |
|
|
Definition at line 321 of file commands.cpp. References atlas::modeStack. Referenced by atlas::completionGenerator(). |
|
|
Definition at line 333 of file commands.cpp. |
|
||||||||||||
|
Execute the command "name". Also install default error handling. Precondition: name is defined either in the current mode or in one of its descendants. If name is found in the current mode, we simply execute it. Otherwise, we find out in which descendant mode it is found, we attempt the mode change, and in case of success, push command on the stack, so that it will be executed at the next loop in |run|. Definition at line 497 of file commands.cpp. References atlas::commands::activate(), atlas::commandStack, atlas::commands::CommandMode::end(), atlas::commands::CommandMode::find(), atlas::commands::CommandMode::findName(), atlas::commands::CommandMode::n_desc(), and atlas::commands::CommandMode::nextMode(). |
|
||||||||||||
|
Referenced by atlas::commands::run(). |
|
|
Definition at line 345 of file commands.cpp. References atlas::commands::exitMode(), atlas::modeStack, and atlas::runFlag. |
|
|
Definition at line 358 of file commands.cpp. References atlas::commands::CommandMode::exit(), and atlas::modeStack. Referenced by atlas::commands::exitInteractive(), atlas::realform_f(), and atlas::type_f(). |
|
|
Definition at line 538 of file commands.cpp. References atlas::commandStack, atlas::getInteractive(), and atlas::commands::CommandMode::prompt(). |
|
|
Referenced by atlas::commands::run(). |
|
||||||||||||||||
|
Definition at line 563 of file commands.cpp. References atlas::commandLine, and atlas::input::InputBuffer::getline(). |
|
||||||||||||||||
|
Referenced by atlas::interactive::getCartanClass(), atlas::getCommand(), atlas::interactive::getInnerClass(), and atlas::interactive::getInteractive(). |
|
||||||||||||||||
|
Definition at line 372 of file commands.cpp. Referenced by atlas::blockmode::addBlockHelp(), atlas::emptyhelp::addEmptyHelp(), atlas::mainhelp::addMainHelp(), atlas::realhelp::addRealHelp(), atlas::special::addSpecialHelp(), and atlas::helpmode::helpMode(). |
|
||||||||||||
|
Definition at line 67 of file commands.cpp. Referenced by atlas::commands::run(). |
|
||||||||||||
|
Definition at line 71 of file commands.cpp. Referenced by atlas::commands::CommandMode::extensions(). |
|
||||||||||||
|
Definition at line 382 of file commands.cpp. References atlas::commands::CommandMode::end(). Referenced by atlas::questionMark_h(). |
|
|
Definition at line 407 of file commands.cpp. References atlas::commands::activate(), atlas::ambiguous(), atlas::commands::CommandMode::error(), atlas::execute(), atlas::commands::CommandMode::extensions(), atlas::getCommand(), atlas::isEqual(), atlas::modeStack, and atlas::runFlag. Referenced by main(). |
|
|
Definition at line 54 of file commands.cpp. Referenced by atlas::getInteractive(). |
|
|
Definition at line 52 of file commands.cpp. Referenced by atlas::execute(), and atlas::getCommand(). |
|
|
Definition at line 48 of file commands.cpp. Referenced by atlas::commands::activate(), atlas::commands::currentMode(), atlas::commands::exitInteractive(), atlas::commands::exitMode(), and atlas::commands::run(). |
|
|
Definition at line 56 of file commands.cpp. Referenced by atlas::commands::exitInteractive(), and atlas::commands::run(). |
1.3.9.1