-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBasicObj.h
65 lines (50 loc) · 1.47 KB
/
BasicObj.h
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
// BasicObj.h: interface for the CBasicObj class.
//
// $Id$
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BASICOBJ_H__77728E92_61C8_492B_A71E_82997A02C7F2__INCLUDED_)
#define AFX_BASICOBJ_H__77728E92_61C8_492B_A71E_82997A02C7F2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "KeywordPageListItems.h"
#include "PhreeqcI.h"
#include "phreeqc3/src/PBasic.h"
class CBasicObj
{
public:
CBasicObj();
virtual ~CBasicObj();
static UINT ThreadProc(LPVOID pParam);
struct XThreadParam
{
PBasic* basic;
char* szCommand;
class rate* rate_ptr;
HANDLE hInfiniteLoop;
};
enum
{
BASIC_OK = 0,
BASIC_ERRORS = 1,
BASIC_EXCEPTION = 2
};
public:
void DDX_BasicCommand(CDataExchange* pDX, int nIDC, long nRow, long nCol, basic_command& value);
void DDV_BasicCommands(CDataExchange* pDX, int nIDC, std::list<basic_command>& r_listCommands, bool bRenumbering = false);
void DDV_ContainsSave(CDataExchange* pDX, int nIDC, std::list<basic_command>& r_listCommands);
BOOL Renumber(std::list<basic_command>& r_listCommands);
protected:
CStdioFile m_errFile;
CStdioFile m_logFile;
CStdioFile m_outFile;
PhreeqcI phreeqc;
PBasic basic;
#if defined(SAVE_TEMP_FILE_EXAMPLE)
bool RemoveTempFiles();
bool OpenTempFiles();
#endif
void SetErrorCell(CDataExchange* pDX, int nIDC, long nLine);
CString ListTokens(void* pVoid);
};
#endif // !defined(AFX_BASICOBJ_H__77728E92_61C8_492B_A71E_82997A02C7F2__INCLUDED_)