ReactOS 0.4.15-dev-7942-gd23573b
CShellCommandExit Class Reference

#include <ShellCommandExit.h>

Inheritance diagram for CShellCommandExit:
Collaboration diagram for CShellCommandExit:

Public Member Functions

 CShellCommandExit ()
 
virtual ~CShellCommandExit ()
 
virtual BOOL Match (const TCHAR *pchCommand)
 
virtual int Execute (CConsole &rConsole, CArgumentParser &rArguments)
 
virtual const TCHARGetHelpString ()
 
virtual const TCHARGetHelpShortDescriptionString ()
 
- Public Member Functions inherited from CShellCommand
 CShellCommand ()
 
virtual ~CShellCommand ()
 
virtual BOOL Match (const TCHAR *pchCommand)=0
 
virtual int Execute (CConsole &rConsole, CArgumentParser &rArguments)=0
 
virtual const TCHARGetHelpString ()=0
 
virtual const TCHARGetHelpShortDescriptionString ()=0
 

Detailed Description

Definition at line 11 of file ShellCommandExit.h.

Constructor & Destructor Documentation

◆ CShellCommandExit()

CShellCommandExit::CShellCommandExit ( )

Definition at line 36 of file ShellCommandExit.cpp.

37{
38
39}

◆ ~CShellCommandExit()

CShellCommandExit::~CShellCommandExit ( )
virtual

Definition at line 41 of file ShellCommandExit.cpp.

42{
43
44}

Member Function Documentation

◆ Execute()

int CShellCommandExit::Execute ( CConsole rConsole,
CArgumentParser rArguments 
)
virtual

Implements CShellCommand.

Definition at line 51 of file ShellCommandExit.cpp.

52{
53 rConsole.Write(GOODBYE_MSG);
54 return 0;
55}
#define GOODBYE_MSG
BOOL Write(const TCHAR *p, DWORD dwChars=0)
Definition: Console.cpp:90

◆ GetHelpShortDescriptionString()

const TCHAR * CShellCommandExit::GetHelpShortDescriptionString ( )
virtual

Implements CShellCommand.

Definition at line 62 of file ShellCommandExit.cpp.

63{
65}
#define EXIT_CMD_SHORT_DESC

◆ GetHelpString()

const TCHAR * CShellCommandExit::GetHelpString ( )
virtual

Implements CShellCommand.

Definition at line 57 of file ShellCommandExit.cpp.

58{
59 return EXIT_CMD_SHORT_DESC _T("Syntax: ") EXIT_CMD _T("\n");
60}
#define EXIT_CMD
GLdouble n
Definition: glext.h:7729
#define _T(x)
Definition: vfdio.h:22

◆ Match()

BOOL CShellCommandExit::Match ( const TCHAR pchCommand)
virtual

Implements CShellCommand.

Definition at line 46 of file ShellCommandExit.cpp.

47{
48 return _tcsicmp(pchCommand,EXIT_CMD) == 0;
49}
#define _tcsicmp
Definition: xmlstorage.h:205

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