-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDBObject.h
144 lines (116 loc) · 2.65 KB
/
DBObject.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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// DBObject.h: interface for the CDBObject class.
//
// $Id$
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DBOBJECT_H__1FD7C0EF_F3AF_4574_81C8_21B43ACA3ED4__INCLUDED_)
#define AFX_DBOBJECT_H__1FD7C0EF_F3AF_4574_81C8_21B43ACA3ED4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class cxxSS;
class Phreeqc;
class CDBObject// : public CObject
{
public:
CDBObject();
CDBObject(const CString& rStr);
CDBObject(LPCTSTR psz);
CDBObject(const CDBObject& rDBObject); // copy ctor
virtual ~CDBObject();
bool operator<(const CDBObject& rDBObject) const;
CString m_strName;
};
class CDBElement : public CDBObject
{
public:
CDBElement();
CDBElement(const class element* p_element, Phreeqc *phreeqc);
virtual ~CDBElement();
bool operator<(const CDBElement& rDBElement)const;
enum type {
typeUnknown = -1,
typeAQ = 0,
typeHPLUS = 1,
typeH2O = 2,
typeEMINUS = 3,
typeSOLID = 4,
typeEX = 5,
typeSURF = 6,
typeSURF_PSI = 7,
} m_type;
CString m_strMaster;
double m_dGFW;
};
class CDBSpecies : public CDBObject
{
public:
CDBSpecies();
CDBSpecies(const class species* p_species);
virtual ~CDBSpecies();
enum CDBElement::type m_type;
double m_z;
};
class CDBPhase : public CDBObject
{
public:
CDBPhase();
CDBPhase(const class phase* p_phase);
virtual ~CDBPhase();
CString m_strFormula;
};
class CDBRate : public CDBObject
{
public:
CDBRate();
CDBRate(const class rate* p_rate);
virtual ~CDBRate();
};
class CDBRedox : public CDBObject
{
public:
CDBRedox();
CDBRedox(const char* psz_redox);
virtual ~CDBRedox();
bool operator<(const CDBRedox& rDBRedox)const;
};
class CDBRange : public CDBObject
{
public:
CDBRange(const CString& rStr);
CDBRange(LPCTSTR psz);
bool operator<(const CDBRange& rDBRange)const;
};
class CDBSSComp : public CDBObject
{
public:
CDBSSComp() : CDBObject() {;}
CDBSSComp(const CString& rStr) : CDBObject(rStr) {;}
CDBSSComp(LPCTSTR psz) : CDBObject(psz) {;}
virtual ~CDBSSComp() {;}
};
class CDBSS : public CDBObject
{
public:
CDBSS() : CDBObject() {;}
CDBSS(const cxxSS* ss);
CDBSS(const CString& rStr) : CDBObject(rStr) {;}
CDBSS(LPCTSTR psz) : CDBObject(psz) {;}
virtual ~CDBSS() {;}
public:
std::list<CDBSSComp> m_listSSComp;
};
class CDBNamedExp : public CDBObject
{
public:
CDBNamedExp();
CDBNamedExp(const class logk* logk_ptr);
virtual ~CDBNamedExp();
};
class CDBCalcVal : public CDBObject
{
public:
CDBCalcVal();
CDBCalcVal(const class calculate_value* calculate_value_ptr);
virtual ~CDBCalcVal();
};
#endif // !defined(AFX_DBOBJECT_H__1FD7C0EF_F3AF_4574_81C8_21B43ACA3ED4__INCLUDED_)