DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
modelmetadataaccessor.h
Go to the documentation of this file.
1 #ifndef MODELMETADATAACCESSOR_H
2 #define MODELMETADATAACCESSOR_H
3 
4 #include "commons_global.h"
5 
6 #include <memory>
7 #include <vector>
8 
9 #include<iterator>
10 
11 class MetadataTable;
12 
14 {
15  std::shared_ptr<MetadataTable> meta;
16 public:
17  explicit ModelMetadataAccessor(std::shared_ptr<MetadataTable>);
18 
19  void setLastTStep(size_t tstep);
20  size_t lastTStep() const;
21 
22  void setNbPops(int n);
23  int nbPops() const;
24 
25  void setNbSizes(int n);
26  int nbSize() const;
27 
28  void setNbBenthos(int n);
29  int nbBenthos();
30 
31  std::vector<int> getVectorOfInt (std::string key);
32  void setVectorOfInt(std::string key, const std::vector<int> &vector);
33 };
34 
35 #endif // MODELMETADATAACCESSOR_H
int tstep
Definition: main.cpp:205
Definition: modelmetadataaccessor.h:13
Definition: metadatatable.h:18
#define COMMONSSHARED_EXPORT
Definition: commons_global.h:23