Interactive CLI 2.3
A cross-platform C++14 library for interactive command-line interfaces
Loading...
Searching...
No Matches
cli::FreeformCommand< F > Class Template Reference

#include <freeformcommand.h>

Inheritance diagram for cli::FreeformCommand< F >:

Public Member Functions

 FreeformCommand (const FreeformCommand &)=delete
FreeformCommand & operator= (const FreeformCommand &)=delete
 FreeformCommand (const std::string &_name, F fun, std::string desc, std::vector< std::string > parDesc)
bool Exec (const std::vector< std::string > &cmdLine, CliSession &session) override
void Help (detail::HelpGroup &entries) const override
Public Member Functions inherited from cli::Command
 Command (std::string _name)
virtual ~Command () noexcept=default
 Command (const Command &)=delete
 Command (Command &&)=delete
Command & operator= (const Command &)=delete
Command & operator= (Command &&)=delete
virtual void Enable ()
virtual void Disable ()
virtual std::vector< std::string > GetCompletionRecursive (const std::string &line) const

Additional Inherited Members

Protected Member Functions inherited from cli::Command
const std::string & Name () const
bool IsEnabled () const

Detailed Description

template<typename F>
class cli::FreeformCommand< F >

Definition at line 44 of file freeformcommand.h.

Constructor & Destructor Documentation

◆ FreeformCommand() [1/2]

template<typename F>
cli::FreeformCommand< F >::FreeformCommand ( const FreeformCommand< F > & )
delete
Here is the caller graph for this function:

◆ FreeformCommand() [2/2]

template<typename F>
cli::FreeformCommand< F >::FreeformCommand ( const std::string & _name,
F fun,
std::string desc,
std::vector< std::string > parDesc )
inline

Definition at line 50 of file freeformcommand.h.

Member Function Documentation

◆ Exec()

template<typename F>
bool cli::FreeformCommand< F >::Exec ( const std::vector< std::string > & cmdLine,
CliSession & session )
inlineoverridevirtual

Implements cli::Command.

Definition at line 314 of file clisession.h.

◆ Help()

template<typename F>
void cli::FreeformCommand< F >::Help ( detail::HelpGroup & entries) const
inlineoverridevirtual

Implements cli::Command.

Definition at line 327 of file clisession.h.

◆ operator=()

template<typename F>
FreeformCommand & cli::FreeformCommand< F >::operator= ( const FreeformCommand< F > & )
delete

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