Horizon Official Technical Documentation
CLICommand Class Reference

#include <Server.hpp>

Public Types

typedef std::function< void(CLICommand, bool)> FinishFunc
 

Public Member Functions

 CLICommand ()
 
 CLICommand (char *command, FinishFunc finish_func)
 
 ~CLICommand ()
 
 CLICommand (CLICommand &command)
 
 CLICommand (CLICommand &&command)
 
CLICommand operator= (CLICommand &command)
 

Public Attributes

std::string m_command
 Command string. More...
 
FinishFunc m_finish_func
 Completion handler function. More...
 

Member Typedef Documentation

◆ FinishFunc

typedef std::function<void(CLICommand, bool)> CLICommand::FinishFunc

Constructor & Destructor Documentation

◆ CLICommand() [1/4]

CLICommand::CLICommand ( )
inline
293{ };

Referenced by operator=().

+ Here is the caller graph for this function:

◆ CLICommand() [2/4]

CLICommand::CLICommand ( char *  command,
FinishFunc  finish_func 
)
inline
296 : m_command(command), m_finish_func(finish_func)
297 {
298 //
299 }
FinishFunc m_finish_func
Completion handler function.
Definition: Server.hpp:323
std::string m_command
Command string.
Definition: Server.hpp:322

◆ ~CLICommand()

CLICommand::~CLICommand ( )
inline
302 {
303 }

◆ CLICommand() [3/4]

CLICommand::CLICommand ( CLICommand command)
inline
306 {
307 m_command = command.m_command;
309 }

References m_command, and m_finish_func.

◆ CLICommand() [4/4]

CLICommand::CLICommand ( CLICommand &&  command)
inline
312 {
313 m_command = command.m_command;
315 }

References m_command, and m_finish_func.

Member Function Documentation

◆ operator=()

CLICommand CLICommand::operator= ( CLICommand command)
inline
318 {
319 return CLICommand(command);
320 }
CLICommand()
Definition: Server.hpp:293

References CLICommand().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_command

std::string CLICommand::m_command

Command string.

Referenced by CLICommand(), and CommandLineProcess::process().

◆ m_finish_func

FinishFunc CLICommand::m_finish_func

Completion handler function.

Referenced by CLICommand(), and CommandLineProcess::process().


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