|
typedef std::function< void(const std::shared_ptr< const IReadLineContext > &readLine, const std::vector< std::string > &args)> | CommandHandler |
|
|
virtual bool | isValid () const =0 |
|
virtual void | run ()=0 |
|
virtual std::shared_ptr< const IReadLineContext > | getContext () const =0 |
|
virtual bool | addCommand (const std::string &name, CommandHandler handler, const std::string &desc, const std::string &help, const std::string &opts)=0 |
|
virtual void | runCommand (int argc, char *const *argv)=0 |
|
|
static std::shared_ptr< IReadLine > | create () |
|
◆ addCommand()
virtual bool IReadLine::addCommand |
( |
const std::string & |
name, |
|
|
CommandHandler |
handler, |
|
|
const std::string & |
desc, |
|
|
const std::string & |
help, |
|
|
const std::string & |
opts |
|
) |
| |
|
pure virtual |
◆ getContext()
virtual std::shared_ptr< const IReadLineContext > IReadLine::getContext |
( |
| ) |
const |
|
pure virtual |
◆ isValid()
virtual bool IReadLine::isValid |
( |
| ) |
const |
|
pure virtual |
◆ run()
virtual void IReadLine::run |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following files:
- AppInfrastructure/ReadLine/include/IReadLine.h
- AppInfrastructure/ReadLine/source/ReadLine.cpp