2 // ShellCommandsLinkedList.h: interface for the CShellCommandsLinkedList class.
4 //////////////////////////////////////////////////////////////////////
6 #if !defined(SHELLCOMMANDSLINKEDLIST_H__D29C1198_5942_11D4_A037_C5AC8D00940F__INCLUDED_)
7 #define SHELLCOMMANDSLINKEDLIST_H__D29C1198_5942_11D4_A037_C5AC8D00940F__INCLUDED_
9 #include "ShellCommand.h"
12 #define POSITION int *
14 class CShellCommandsLinkedList
17 CShellCommandsLinkedList(CConsole
& rConsole
);
18 virtual ~CShellCommandsLinkedList();
19 void AddCommand(CShellCommand
*pCommand
);
20 int Execute(CArgumentParser
& rArgumentParser
, int& nReturnValue
);
21 CShellCommand
* Match(const TCHAR
* pchCommand
);
22 POSITION
GetFirstCommandPosition();
23 CShellCommand
* GetNextCommand(POSITION
& rPos
);
27 SNode() {m_pNext
= NULL
;};
28 CShellCommand
*m_pData
;
34 #endif // !defined(SHELLCOMMANDSLINKEDLIST_H__D29C1198_5942_11D4_A037_C5AC8D00940F__INCLUDED_)