1 #ifndef OUTPUTEXPORTER_H 2 #define OUTPUTEXPORTER_H 14 static std::shared_ptr <OutputExporter> mInstance;
16 std::string mBasePath;
17 std::ofstream mVmsLike;
18 std::ofstream mVmsLikeFPingsOnly;
19 std::ofstream mLogLike;
20 std::ofstream mTripCatchesPerSzgroup;
23 bool usePlainText =
true;
24 std::shared_ptr<SQLiteOutputStorage> mSqlDb;
37 void setSQLiteDb(std::shared_ptr<SQLiteOutputStorage> db) { mSqlDb = db; }
47 void exportVmsLikePlaintext(
unsigned int tstep, Vessel *vessel);
48 void exportVmsLikeSQLite(
unsigned int tstep, Vessel *vessel);
50 void exportVmsLikeFPingsOnlyPlaintext(
unsigned int tstep, Vessel *vessel,
const std::vector<Population *> &
populations, std::vector<int> &
implicit_pops);
51 void exportVmsLikeFPingsOnlySQLite(
unsigned int tstep, Vessel *vessel,
const std::vector<Population *> &
populations, std::vector<int> &
implicit_pops);
55 #endif // OUTPUTEXPORTER_H vector< int > implicit_pops
Definition: main.cpp:238
void setSQLiteDb(std::shared_ptr< SQLiteOutputStorage > db)
Definition: outputexporter.h:37
OutputExporter(const std::string &basepath, const std::string &namesimu)
Definition: outputexporter.cpp:18
void exportVmsLikeFPingsOnly(unsigned int tstep, Vessel *vessel, const std::vector< Population * > &populations, std::vector< int > &implicit_pops)
Definition: outputexporter.cpp:78
int tstep
Definition: main.cpp:205
Definition: outputexporter.h:12
void exportVmsLike(unsigned int tstep, Vessel *vessel)
Definition: outputexporter.cpp:34
void exportLogLike(unsigned int tstep, Vessel *vessel, const std::vector< Population * > &populations, std::vector< int > &implicit_pops)
Definition: outputexporter.cpp:174
Definition: Population.h:34
void exportTripCatchPopPerSzgroup(unsigned int tstep, Vessel *vessel, const std::vector< Population * > &populations, std::vector< int > &implicit_pops)
Definition: outputexporter.cpp:399
void setUsePlainText(bool pt)
Definition: outputexporter.h:36
static OutputExporter & instance()
Definition: outputexporter.h:41
vector< Population * > populations
Definition: main.cpp:202
string namesimu
Definition: main.cpp:430
void setUseSqlite(bool sql)
Definition: outputexporter.h:35
Definition: sqliteoutputstorage.h:37
static bool instantiate(const std::string &basepath, const std::string &namesimu)
Definition: outputexporter.cpp:451
void close()
Definition: outputexporter.cpp:445