Command delegate class. More...

#include <CommandDelegate.h>

Collaboration diagram for CommandDelegate:
[legend]

Public Member Functions

 CommandDelegate (String reqName, String reqHelp, String reqGroup, CommandFunctionDelegate reqFunction)
 
 ~CommandDelegate ()
 

Public Attributes

String commandName
 Command name. More...
 
String commandHelp
 Command help. More...
 
String commandGroup
 Command group. More...
 
CommandFunctionDelegate commandFunction
 Command Delegate (function that is called when command is invoked) More...
 

Friends

class HashMap< String, CommandDelegate >
 

Detailed Description

Command delegate class.

Constructor & Destructor Documentation

◆ CommandDelegate()

CommandDelegate::CommandDelegate ( String  reqName,
String  reqHelp,
String  reqGroup,
CommandFunctionDelegate  reqFunction 
)

Instantiate a command delegate

Parameters
reqNameCommand name - the text a user types to invoke the command
reqHelpHelp message shown by CLI "help" command
reqGroupThe command group to which this command belongs
reqFunctionDelegate that should be invoked (triggered) when the command is entered by a user

◆ ~CommandDelegate()

CommandDelegate::~CommandDelegate ( )

Friends And Related Function Documentation

◆ HashMap< String, CommandDelegate >

friend class HashMap< String, CommandDelegate >
friend

Member Data Documentation

◆ commandFunction

CommandFunctionDelegate CommandDelegate::commandFunction

Command Delegate (function that is called when command is invoked)

◆ commandGroup

String CommandDelegate::commandGroup

Command group.

◆ commandHelp

String CommandDelegate::commandHelp

Command help.

◆ commandName

String CommandDelegate::commandName

Command name.


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