ReactOS  0.4.14-dev-49-gfb4591c
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 ()
 

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 {
64  return EXIT_CMD_SHORT_DESC;
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 }
GLdouble n
Definition: glext.h:7729
#define EXIT_CMD_SHORT_DESC
#define _T(x)
Definition: vfdio.h:22
#define EXIT_CMD

◆ 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
#define EXIT_CMD

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