CBOE Emulator  1.0
Public Member Functions | List of all members
CLI< CommandHandler > Class Template Reference

A template-based asynchronous command line interface based on asio. More...

#include <cli.hpp>

Public Member Functions

 CLI (asio::io_context &context_, CommandHandler &handler_)
 Initialize a new command line interface. More...
 

Detailed Description

template<typename CommandHandler>
class CLI< CommandHandler >

A template-based asynchronous command line interface based on asio.

Template Parameters
CommandHandlera callback handler type for handling string commands

Constructor & Destructor Documentation

◆ CLI()

template<typename CommandHandler >
CLI< CommandHandler >::CLI ( asio::io_context &  context_,
CommandHandler &  handler_ 
)
inline

Initialize a new command line interface.

Parameters
context_the context to create the CLI with
handler_the handler to pass commands to

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