Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
GeneralCommands Class Reference

Container for all the general commands. More...

#include <GeneralCommands.hxx>

Public Member Functions

 GeneralCommands (Console *console)
 Constructor.
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (GeneralCommands)
 

Static Private Member Functions

static Console::CommandStatus version_command (FILE *fp, int argc, const char *argv[], void *context)
 Concatinate files.
 

Detailed Description

Container for all the general commands.

This class can be used by intantiating an instance of GeneralCommands and passing to the constructor a Console instance reference. The commands implemented by GeneralCommands will be added to the Console instance.

Definition at line 46 of file GeneralCommands.hxx.

Constructor & Destructor Documentation

◆ GeneralCommands()

GeneralCommands::GeneralCommands ( Console console)
inline

Constructor.

Parameters
consoleconsole instance to add the commands to

Definition at line 51 of file GeneralCommands.hxx.

Member Function Documentation

◆ version_command()

static Console::CommandStatus GeneralCommands::version_command ( FILE *  fp,
int  argc,
const char *  argv[],
void *  context 
)
inlinestaticprivate

Concatinate files.

Parameters
fpfile pointer to console
argcnumber of arguments including the command itself
argvarray of arguments starting with the command itself
contextunused
Returns
COMMAND_OK

Definition at line 63 of file GeneralCommands.hxx.


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