Interactive CLI 2.3
A cross-platform C++14 library for interactive command-line interfaces
Loading...
Searching...
No Matches
cli Namespace Reference

Classes

class  Cli
class  CliFileSession
class  CliLocalTerminalSession
 CliLocalTerminalSession represents a local session. You should instantiate it to start an interactive prompt on the standard input/output of your application. The handlers of the commands will be invoked in the same thread the Scheduler runs. More...
class  CliSession
class  CmdHandler
class  Command
class  FileHistoryStorage
class  FreeformCommand
class  HistoryStorage
class  LoopScheduler
 The LoopScheduler is a simple thread-safe scheduler. More...
class  Menu
class  OutStream
class  Scheduler
struct  TypeDesc
struct  TypeDesc< char >
struct  TypeDesc< unsigned char >
struct  TypeDesc< signed char >
struct  TypeDesc< short >
struct  TypeDesc< unsigned short >
struct  TypeDesc< int >
struct  TypeDesc< unsigned int >
struct  TypeDesc< long >
struct  TypeDesc< unsigned long >
struct  TypeDesc< long long >
struct  TypeDesc< unsigned long long >
struct  TypeDesc< float >
struct  TypeDesc< double >
struct  TypeDesc< long double >
struct  TypeDesc< bool >
struct  TypeDesc< std::string >
struct  TypeDesc< std::vector< std::string > >
struct  Select
struct  Select< P, Args... >
struct  Select<>
struct  ParamNames
struct  ParamNames< P, Args... >
struct  ParamNames<>
class  VariadicFunctionCommand
class  VolatileHistoryStorage

Typedefs

using BoostAsioCliAsyncSession = detail::GenericCliAsyncSession<detail::BoostAsioLib>
using BoostAsioCliTelnetServer = detail::CliGenericTelnetServer<detail::BoostAsioLib>
using BoostAsioScheduler = detail::GenericAsioScheduler<detail::BoostAsioLib>
using CliLocalSession = CliLocalTerminalSession
using StandaloneAsioCliAsyncSession = detail::GenericCliAsyncSession<detail::StandaloneAsioLib>
using StandaloneAsioCliTelnetServer = detail::CliGenericTelnetServer<detail::StandaloneAsioLib>
using StandaloneAsioScheduler = detail::GenericAsioScheduler<detail::StandaloneAsioLib>

Enumerations

enum  BeforePrompt { beforePrompt }
enum  AfterPrompt { afterPrompt }
enum  BeforeInput { beforeInput }
enum  AfterInput { afterInput }
enum  BeforeCommandName { beforeCommandName }
enum  AfterCommandName { afterCommandName }
enum  BeforeParameter { beforeParameter }
enum  AfterParameter { afterParameter }

Functions

bool & Color ()
void SetColor ()
void SetNoColor ()
std::ostream & operator<< (std::ostream &os, BeforePrompt)
std::ostream & operator<< (std::ostream &os, AfterPrompt)
std::ostream & operator<< (std::ostream &os, BeforeInput)
std::ostream & operator<< (std::ostream &os, AfterInput)
std::ostream & operator<< (std::ostream &os, BeforeCommandName)
std::ostream & operator<< (std::ostream &os, AfterCommandName)
std::ostream & operator<< (std::ostream &os, BeforeParameter)
std::ostream & operator<< (std::ostream &os, AfterParameter)
std::vector< std::string > GetCompletions (const std::shared_ptr< std::vector< std::shared_ptr< Command > > > &cmds, const std::string &currentLine)

Typedef Documentation

◆ BoostAsioCliAsyncSession

using cli::BoostAsioCliAsyncSession = detail::GenericCliAsyncSession<detail::BoostAsioLib>

Definition at line 37 of file boostasiocliasyncsession.h.

◆ BoostAsioCliTelnetServer

using cli::BoostAsioCliTelnetServer = detail::CliGenericTelnetServer<detail::BoostAsioLib>

Definition at line 36 of file boostasioremotecli.h.

◆ BoostAsioScheduler

using cli::BoostAsioScheduler = detail::GenericAsioScheduler<detail::BoostAsioLib>

Definition at line 36 of file boostasioscheduler.h.

◆ CliLocalSession

◆ StandaloneAsioCliAsyncSession

using cli::StandaloneAsioCliAsyncSession = detail::GenericCliAsyncSession<detail::StandaloneAsioLib>

Definition at line 37 of file standaloneasiocliasyncsession.h.

◆ StandaloneAsioCliTelnetServer

using cli::StandaloneAsioCliTelnetServer = detail::CliGenericTelnetServer<detail::StandaloneAsioLib>

Definition at line 36 of file standaloneasioremotecli.h.

◆ StandaloneAsioScheduler

using cli::StandaloneAsioScheduler = detail::GenericAsioScheduler<detail::StandaloneAsioLib>

Definition at line 36 of file standaloneasioscheduler.h.

Enumeration Type Documentation

◆ AfterCommandName

Enumerator
afterCommandName 

Definition at line 48 of file colorprofile.h.

◆ AfterInput

Enumerator
afterInput 

Definition at line 46 of file colorprofile.h.

◆ AfterParameter

Enumerator
afterParameter 

Definition at line 50 of file colorprofile.h.

◆ AfterPrompt

Enumerator
afterPrompt 

Definition at line 44 of file colorprofile.h.

◆ BeforeCommandName

Enumerator
beforeCommandName 

Definition at line 47 of file colorprofile.h.

◆ BeforeInput

Enumerator
beforeInput 

Definition at line 45 of file colorprofile.h.

◆ BeforeParameter

Enumerator
beforeParameter 

Definition at line 49 of file colorprofile.h.

◆ BeforePrompt

Enumerator
beforePrompt 

Definition at line 43 of file colorprofile.h.

Function Documentation

◆ Color()

bool & cli::Color ( )
inline

Definition at line 38 of file colorprofile.h.

Here is the caller graph for this function:

◆ GetCompletions()

std::vector< std::string > cli::GetCompletions ( const std::shared_ptr< std::vector< std::shared_ptr< Command > > > & cmds,
const std::string & currentLine )
inline

Definition at line 76 of file command.h.

Here is the caller graph for this function:

◆ operator<<() [1/8]

std::ostream & cli::operator<< ( std::ostream & os,
AfterCommandName  )
inline

Definition at line 83 of file colorprofile.h.

◆ operator<<() [2/8]

std::ostream & cli::operator<< ( std::ostream & os,
AfterInput  )
inline

Definition at line 70 of file colorprofile.h.

◆ operator<<() [3/8]

std::ostream & cli::operator<< ( std::ostream & os,
AfterParameter  )
inline

Definition at line 95 of file colorprofile.h.

◆ operator<<() [4/8]

std::ostream & cli::operator<< ( std::ostream & os,
AfterPrompt  )
inline

Definition at line 58 of file colorprofile.h.

◆ operator<<() [5/8]

std::ostream & cli::operator<< ( std::ostream & os,
BeforeCommandName  )
inline

Definition at line 77 of file colorprofile.h.

◆ operator<<() [6/8]

std::ostream & cli::operator<< ( std::ostream & os,
BeforeInput  )
inline

Definition at line 64 of file colorprofile.h.

◆ operator<<() [7/8]

std::ostream & cli::operator<< ( std::ostream & os,
BeforeParameter  )
inline

Definition at line 89 of file colorprofile.h.

◆ operator<<() [8/8]

std::ostream & cli::operator<< ( std::ostream & os,
BeforePrompt  )
inline

Definition at line 52 of file colorprofile.h.

◆ SetColor()

void cli::SetColor ( )
inline

Definition at line 40 of file colorprofile.h.

◆ SetNoColor()

void cli::SetNoColor ( )
inline

Definition at line 41 of file colorprofile.h.