|
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 |
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 |
const CommandMode & | nextMode (size_t j) const |
const CommandMode & | prev () const |
void | add (const char *const name, void(*action)()) |
void | add (const char *const, const Command &) |
iterator | find (const char *name) |
void | setAction (const char *, void(*)()) |
Protected Attributes |
const CommandMode * | d_prev |
Private Types |
typedef std::map< const char *,
Command, StrCmp > | CommandDict |
Private Attributes |
CommandDict | d_map |
const char * | d_prompt |
void(* | d_entry )() |
void(* | d_exit )() |
void(* | d_error )(const char *) |
Static Private Attributes |
static std::vector< const
CommandMode * > | d_empty |