-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathFormModel.h
42 lines (32 loc) · 957 Bytes
/
FormModel.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
#ifndef FORMMODEL_INCLUDED_H
#define FORMMODEL_INCLUDED_H
#include <Wt/WFormModel>
#include <Wt/WString>
#include <Wt/WStringListModel>
namespace opcalc {
class StringSetModel;
class FormModel : public Wt::WFormModel
{
public:
static const Field EngineField,
ProcessField,
SpotField,
DividendField,
InterestField,
VolatilityField,
CallPutField,
StrikeField,
TermField,
ResultField,
DeltaField,
GammaField,
ThetaField,
VegaField,
RhoField;
FormModel(Wt::WObject * parent = 0);
Wt::WString label(Field field) const;
void calculate();
StringSetModel *engineModel, *processModel, *callPutModel;
};
}
#endif