ReactOS 0.4.15-dev-7842-g558ab78
CShellCommandVersion Class Reference

#include <ShellCommandVersion.h>

Inheritance diagram for CShellCommandVersion:
Collaboration diagram for CShellCommandVersion:

Public Member Functions

 CShellCommandVersion ()
 
virtual ~CShellCommandVersion ()
 
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 ShellCommandVersion.h.

Constructor & Destructor Documentation

◆ CShellCommandVersion()

CShellCommandVersion::CShellCommandVersion ( )

Definition at line 37 of file ShellCommandVersion.cpp.

38{
39}

◆ ~CShellCommandVersion()

CShellCommandVersion::~CShellCommandVersion ( )
virtual

Definition at line 41 of file ShellCommandVersion.cpp.

42{
43}

Member Function Documentation

◆ Execute()

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

Implements CShellCommand.

Definition at line 50 of file ShellCommandVersion.cpp.

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

◆ GetHelpShortDescriptionString()

const TCHAR * CShellCommandVersion::GetHelpShortDescriptionString ( )
virtual

Implements CShellCommand.

Definition at line 62 of file ShellCommandVersion.cpp.

63{
64 return VER_CMD_SHORT_DESC;
65}
#define VER_CMD_SHORT_DESC

◆ GetHelpString()

const TCHAR * CShellCommandVersion::GetHelpString ( )
virtual

Implements CShellCommand.

Definition at line 57 of file ShellCommandVersion.cpp.

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

◆ Match()

BOOL CShellCommandVersion::Match ( const TCHAR pchCommand)
virtual

Implements CShellCommand.

Definition at line 45 of file ShellCommandVersion.cpp.

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

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