1 #ifndef VESSELSLOGLIKETABLE_H 2 #define VESSELSLOGLIKETABLE_H 7 #include "sqlitefielddef.h" 8 #include "sqlitetable.h" 18 std::unique_ptr<Impl> p;
21 const FieldDef<FieldType::Integer> fldRowId = makeFieldDef(
"RowId", FieldType::Integer()).primaryKey();
22 const FieldDef<FieldType::Integer> fldId = makeFieldDef(
"Id", FieldType::Integer()).notNull();
23 const FieldDef<FieldType::Integer> fldTStep = makeFieldDef(
"TStep",FieldType::Integer()).notNull();
24 const FieldDef<FieldType::Integer> fldTStepDep = makeFieldDef(
"TStepDep",FieldType::Integer()).notNull();
25 const FieldDef<FieldType::Integer> fldNodeId = makeFieldDef(
"NodeId",FieldType::Integer()).notNull();
27 const FieldDef<FieldType::Integer> fldMetierId = makeFieldDef(
"metierId",FieldType::Integer()).notNull();
28 const FieldDef<FieldType::Integer> fldLastHarbour = makeFieldDef(
"lastHarbour",FieldType::Integer()).notNull();
30 const FieldDef<FieldType::Real> fldRevenueAV = makeFieldDef(
"revenueAV",FieldType::Real()).notNull();
31 const FieldDef<FieldType::Real> revenueExAV = makeFieldDef(
"revenueExAV",FieldType::Real()).notNull();
32 const FieldDef<FieldType::Real> timeAtSea = makeFieldDef(
"timeAtSea",FieldType::Real()).notNull();
34 const FieldDef<FieldType::Integer> reasonToGoBack = makeFieldDef(
"reasonToGoBack",FieldType::Integer()).notNull();
36 const FieldDef<FieldType::Real> cumFuelCons = makeFieldDef(
"cumFuelCons",FieldType::Real()).notNull();
37 const FieldDef<FieldType::Real> vpuf = makeFieldDef(
"vpuf",FieldType::Real()).notNull();
38 const FieldDef<FieldType::Real> fuelCost = makeFieldDef(
"fuelCost",FieldType::Real()).notNull();
39 const FieldDef<FieldType::Real> gav = makeFieldDef(
"gav",FieldType::Real()).notNull();
40 const FieldDef<FieldType::Real> sweptArea = makeFieldDef(
"sweptArea",FieldType::Real()).notNull();
41 const FieldDef<FieldType::Real> revenuePerSweptArea = makeFieldDef(
"revenuePerSweptArea",FieldType::Real()).notNull();
43 const FieldDef<FieldType::Real> GVA = makeFieldDef(
"GVA",FieldType::Real()).notNull();
44 const FieldDef<FieldType::Real> GVAPerRevenue = makeFieldDef(
"GVAPerRevenue",FieldType::Real()).notNull();
45 const FieldDef<FieldType::Real> LabourSurplus = makeFieldDef(
"LabourSurplus",FieldType::Real()).notNull();
46 const FieldDef<FieldType::Real> GrossProfit = makeFieldDef(
"GrossProfit",FieldType::Real()).notNull();
47 const FieldDef<FieldType::Real> NetProfit = makeFieldDef(
"NetProfit",FieldType::Real()).notNull();
48 const FieldDef<FieldType::Real> NetProfitMargin = makeFieldDef(
"NetProfitMargin",FieldType::Real()).notNull();
49 const FieldDef<FieldType::Real> RoFTA = makeFieldDef(
"RoFTA",FieldType::Real()).notNull();
50 const FieldDef<FieldType::Real> GVAPerFTE = makeFieldDef(
"GVAPerFTE",FieldType::Real()).notNull();
51 const FieldDef<FieldType::Real> BER = makeFieldDef(
"BER",FieldType::Real()).notNull();
52 const FieldDef<FieldType::Real> CRBER = makeFieldDef(
"CRBER",FieldType::Real()).notNull();
53 const FieldDef<FieldType::Real> NetPresentValue = makeFieldDef(
"NetPresentValue",FieldType::Real()).notNull();
55 const FieldDef<FieldType::Integer> numTrips = makeFieldDef(
"numTrips",FieldType::Integer()).notNull();
69 double revenueExAV = 0;
71 int reasonToGoBack = 0;
72 double cumFuelCons = 0;
77 double revenuePerSweptArea = 0;
79 double GVAPerRevenue = 0;
80 double LabourSurplus = 0;
81 double GrossProfit = 0;
83 double NetProfitMargin = 0;
88 double NetPresentValue = 0;
92 size_t insertLog(
const Log &log);
95 #endif // VESSELSLOGLIKETABLE_H int tstepdep
Definition: vesselslogliketable.h:64
Definition: vesselslogliketable.h:62
Definition: sqliteoutputstorage.h:33
int tstep
Definition: main.cpp:205
types::NodeId node_id
Definition: vesselslogliketable.h:65
int id
Definition: vesselslogliketable.h:63
Definition: vesselslogliketable.h:14
Definition: vesselslogliketable.cpp:4
#define COMMONSSHARED_EXPORT
Definition: commons_global.h:23