DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
shipstable.h
Go to the documentation of this file.
1 #ifndef SHIPSTABLE_H
2 #define SHIPSTABLE_H
3 
4 #include "commons_global.h"
5 #include "idtypes.h"
6 #include "dbtypes.h"
7 #include "plottypes.h"
8 
9 #include "sqlitetable.h"
10 
11 #include <string>
12 
13 class Ship;
14 
15 class COMMONSSHARED_EXPORT ShipsTable : public sqlite::SQLiteTable
16 {
17  struct Impl;
18  std::unique_ptr<Impl> p;
19 
20  void init();
21 public:
22  ShipsTable(std::shared_ptr<sqlite::SQLiteStorage> db, std::string name);
23  ~ShipsTable() noexcept;
24 
25  void dropAndCreate();
26  void exportShipsIndivators(int tstep, Ship* ship);
27 
28  TimelineData getShipsStatData(displace::plot::ShipsStat stattype, displace::plot::AggregationType aggtype, int shipid, std::vector<int> shiptypeid);
29 };
30 
31 #endif // SHIPSTABLE_H
Definition: shipstable.cpp:14
int tstep
Definition: main.cpp:205
AggregationType
Definition: plottypes.h:29
Definition: shipstable.h:15
Definition: dbtypes.h:7
ShipsStat
Definition: plottypes.h:14
#define COMMONSSHARED_EXPORT
Definition: commons_global.h:23