[go: up one dir, main page]

Menu

[r996]: / trunk / VTS3 / ScriptCommand.h  Maximize  Restore  History

Download this file

96 lines (73 with data), 2.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// ScriptCommand.h: interface for the ScriptCHECKCommand class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SCRIPTCOMMAND_H__99CE0EF3_EAE9_42D2_AD4C_E0B3F2D056C7__INCLUDED_)
#define AFX_SCRIPTCOMMAND_H__99CE0EF3_EAE9_42D2_AD4C_E0B3F2D056C7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ScriptBase.h"
#include "ScriptExecMsg.h"
#include "VTSQueue.h"
class ScriptIfdefHandler;
class CScriptMakeDlg;
//class ScriptScanner;
//class ScriptToken;
class ScriptMessage : public ScriptCommand
{
protected:
CString * m_pstrTestTitle;
CString m_strText;
CWnd * m_pParent;
private:
void Parse( ScriptIfdefHandler & ifdefHandler, ScriptScanner & scan, ScriptToken & tok );
public:
ScriptMessage( ScriptIfdefHandler & ifdefHandler, ScriptScanner & scan, ScriptToken & tok, CString * pstrTest, CWnd * pparent = NULL );
};
class ScriptCHECKCommand : public ScriptMessage
{
public:
ScriptCHECKCommand( ScriptIfdefHandler & ifdefHandler, ScriptScanner & scan, ScriptToken & tok, CString * pstrTest, CWnd * pparent = NULL );
virtual ~ScriptCHECKCommand();
bool Execute(CString * pstrError);
};
//Class ScriptAssignCommand Added by Zhu Zhenhua, 2003-12-24, to ASSIGN statement
class ScriptAssignCommand : public ScriptCommand
{
public:
CString m_assigntext;
ScriptAssignCommand(ScriptIfdefHandler & ifdefHandler, ScriptScanner & scan, ScriptToken & tok, CString * pstrTest, CWnd * pparent);
virtual ~ScriptAssignCommand();
bool Execute(CString * pstrError);
private:
void Parse( ScriptIfdefHandler & ifdefHandler, ScriptScanner & scan, ScriptToken & tok );
};
//Class ScriptWaitCommand Added by Zhu Zhenhua, 2003-12-31, to WAIT statement
class ScriptWaitCommand : public ScriptCommand
{
public:
int m_nwaittime;
ScriptWaitCommand(ScriptIfdefHandler & ifdefHandler, ScriptScanner & scan, ScriptToken & tok, CString * pstrTest, ScriptDocument * pdoc,CWnd * pparent);
virtual ~ScriptWaitCommand();
bool Execute(CString * pstrError);
private:
void StringToValue( const char *dec );
void Parse( ScriptIfdefHandler & ifdefHandler, ScriptScanner & scan, ScriptToken & tok );
};
class ScriptMAKECommand : public ScriptMessage
{
private:
CScriptMakeDlg * m_pdlg;
int m_nDestroyCode;
ScriptExecMsgQueue * m_pqueue;
public:
bool m_fHanging; // true if this should be modeless...
ScriptMAKECommand( ScriptIfdefHandler & ifdefHandler, ScriptScanner & scan, ScriptToken & tok, CString * pstrTest, CWnd * pparent );
virtual ~ScriptMAKECommand();
void SetQueue(ScriptExecMsgQueue * pqueue);
bool Execute(CString * pstrError);
void Kill(int nDestroyCode = 1);
bool IsUp(void);
bool IsSuccess(void);
};
#endif // !defined(AFX_SCRIPTCOMMAND_H__99CE0EF3_EAE9_42D2_AD4C_E0B3F2D056C7__INCLUDED_)