Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cCmdTerm.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cCmdTerm_H
7 #define _INC_cCmdTerm_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "GrayX.h"
13 
14 namespace GrayX
15 {
16  class cCmdTerm : public GrayXCmd
17  {
20 
21  bool m_bInputMode; // Displaying input.
22  cStream* m_pStream;
23 
24  private:
25  HRESULT DisplayChar(BYTE ch, bool bInputMode);
26  HRESULT OutputChar(BYTE ch);
27  HRESULT InputChar(BYTE ch);
28 
29  public:
30  cCmdTerm();
31  virtual ~cCmdTerm();
32 
33  void OutputScript(const char* pszCmd);
34  virtual HRESULT DoCmd(const FILECHAR_t* pszArgs) override;
35  };
36 }
37 
38 #endif
39 
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: GrayX.h:43
Definition: cCmdTerm.h:17
virtual ~cCmdTerm()
Definition: cCmdTerm.cpp:23
cCmdTerm()
Definition: cCmdTerm.cpp:17
virtual HRESULT DoCmd(const FILECHAR_t *pszArgs) override
Definition: cCmdTerm.cpp:69
void OutputScript(const char *pszCmd)
Definition: cCmdTerm.cpp:56
Definition: cStream.h:456
Definition: GrayX.cpp:52
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22