remove trailing whitespace at end of lines
[reactos.git] / rosapps / sysutils / regexpl / ShellCommandsLinkedList.h
1 /* $Id$ */
2
3 // ShellCommandsLinkedList.h: interface for the CShellCommandsLinkedList class.
4 //
5 //////////////////////////////////////////////////////////////////////
6
7 #if !defined(SHELLCOMMANDSLINKEDLIST_H__D29C1198_5942_11D4_A037_C5AC8D00940F__INCLUDED_)
8 #define SHELLCOMMANDSLINKEDLIST_H__D29C1198_5942_11D4_A037_C5AC8D00940F__INCLUDED_
9
10 #include "ShellCommand.h"
11 #include "Console.h"
12
13 #define POSITION int *
14
15 class CShellCommandsLinkedList
16 {
17 public:
18 CShellCommandsLinkedList(CConsole& rConsole);
19 virtual ~CShellCommandsLinkedList();
20 void AddCommand(CShellCommand *pCommand);
21 int Execute(CArgumentParser& rArgumentParser, int& nReturnValue);
22 CShellCommand * Match(const TCHAR * pchCommand);
23 POSITION GetFirstCommandPosition();
24 CShellCommand * GetNextCommand(POSITION& rPos);
25 private:
26 struct SNode
27 {
28 SNode() {m_pNext = NULL;};
29 CShellCommand *m_pData;
30 SNode *m_pNext;
31 } *m_pRoot;
32 CConsole &m_rConsole;
33 };
34
35 #endif // !defined(SHELLCOMMANDSLINKEDLIST_H__D29C1198_5942_11D4_A037_C5AC8D00940F__INCLUDED_)