#include <commands.h>
Public Types | |
| typedef CommandDict::iterator | iterator |
| typedef CommandDict::const_iterator | const_iterator |
Public Member Functions | |
| CommandMode (const char *, void(*entry)()=&relax_f, void(*exit)()=&relax_f, void(*error)(const char *)=&defaultError) | |
| virtual | ~CommandMode () |
| const_iterator | begin () const |
| const_iterator | end () const |
| bool | empty () const |
| const_iterator | find (const char *name) const |
| const char * | prompt () const |
| void | entry () const |
| void | error (const char *str) const |
| void | exit () const |
| void | extensions (std::set< const char *, StrCmp > &, const char *) const |
| void | extensions (std::vector< const char * > &, const char *) const |
| const_iterator | findName (const char *name) const |
| virtual const std::vector< const CommandMode * > & | next () const |
| size_t | n_desc () const |
| const CommandMode & | nextMode (size_t j) const |
| void | add (const char *const name, void(*action)()) |
| void | add (const char *const, const Command &) |
| void | add_descendant (CommandMode &c) |
| iterator | find (const char *name) |
| void | setAction (const char *, void(*)()) |
Private Types | |
| typedef std::map< const char *, Command, StrCmp > | CommandDict |
Private Attributes | |
| std::vector< const CommandMode * > | d_nextList |
| CommandDict | d_map |
| const char * | d_prompt |
| void(* | d_entry )() |
| void(* | d_exit )() |
| void(* | d_error )(const char *) |
|
|
Definition at line 78 of file commands.h. |
|
|
Definition at line 91 of file commands.h. Referenced by extensions(), and findName(). |
|
|
Definition at line 90 of file commands.h. |
|
||||||||||||||||||||
|
Definition at line 109 of file commands.cpp. |
|
|
Definition at line 99 of file commands.h. |
|
||||||||||||
|
Definition at line 203 of file commands.cpp. References d_map. |
|
||||||||||||
|
|
Definition at line 155 of file commands.h. |
|
|
Definition at line 102 of file commands.h. Referenced by atlas::commands::addCommands(), and atlas::completionGenerator(). |
|
|
Definition at line 110 of file commands.h. Referenced by atlas::blockmode::blockMode(), atlas::helpmode::helpMode(), atlas::mainmode::mainMode(), and atlas::realmode::realMode(). |
|
|
Definition at line 106 of file commands.h. Referenced by atlas::commands::addCommands(), atlas::ambiguous(), atlas::commands::checkName(), atlas::execute(), extensions(), findName(), and atlas::commands::printTags(). |
|
|
Definition at line 120 of file commands.h. Referenced by atlas::commands::activate(). |
|
|
Definition at line 124 of file commands.h. Referenced by atlas::commands::run(). |
|
|
Definition at line 128 of file commands.h. Referenced by atlas::commands::exitMode(). |
|
||||||||||||
|
Definition at line 154 of file commands.cpp. References end(), and extensions(). |
|
||||||||||||
|
Definition at line 129 of file commands.cpp. References const_iterator, d_map, atlas::isInitial(), n_desc(), and nextMode(). Referenced by atlas::commands::checkName(), atlas::completionGenerator(), extensions(), and atlas::commands::run(). |
|
|
Definition at line 158 of file commands.h. |
|
|
Definition at line 112 of file commands.h. Referenced by atlas::execute(), findName(), and setAction(). |
|
|
Definition at line 173 of file commands.cpp. References const_iterator, end(), find(), n_desc(), next(), and nextMode(). Referenced by atlas::commands::checkName(), and atlas::execute(). |
|
|
Definition at line 142 of file commands.h. Referenced by atlas::execute(), extensions(), and findName(). |
|
|
Definition at line 138 of file commands.h. Referenced by findName(). |
|
|
Definition at line 144 of file commands.h. Referenced by atlas::execute(), extensions(), and findName(). |
|
|
Definition at line 116 of file commands.h. Referenced by atlas::getCommand(). |
|
||||||||||||
|
Definition at line 220 of file commands.cpp. References atlas::commands::Command::action, and find(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 82 of file commands.h. Referenced by add(), and extensions(). |
|
|
Definition at line 80 of file commands.h. |
|
|
Definition at line 83 of file commands.h. |
1.3.9.1