Dobby 3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
IReadLine Class Referenceabstract
Inheritance diagram for IReadLine:
Inheritance graph
[legend]

Public Types

typedef std::function< void(const std::shared_ptr< const IReadLineContext > &readLine, const std::vector< std::string > &args)> CommandHandler
 

Public Member Functions

virtual bool isValid () const =0
 
virtual void run ()=0
 
virtual std::shared_ptr< const IReadLineContextgetContext () 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 Public Member Functions

static std::shared_ptr< IReadLinecreate ()
 

Member Function Documentation

◆ 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

Implemented in ReadLine.

◆ getContext()

virtual std::shared_ptr< const IReadLineContext > IReadLine::getContext ( ) const
pure virtual

Implemented in ReadLine.

◆ isValid()

virtual bool IReadLine::isValid ( ) const
pure virtual

Implemented in ReadLine.

◆ run()

virtual void IReadLine::run ( )
pure virtual

Implemented in ReadLine.


The documentation for this class was generated from the following files: