13#ifndef SEIMS_BMP_AREALSTRUCT_H
14#define SEIMS_BMP_AREALSTRUCT_H
18#include "data_raster.hpp"
42 map<string, ParamInfo<FLTPT>*>&
getParameters() {
return m_parameters; }
49 void setLastUpdateTime(time_t val) { m_lastUpdateTime = val; }
55 vector<int> m_landuse;
62 time_t m_lastUpdateTime;
67 map<string, ParamInfo<FLTPT>*> m_parameters;
80 const string& collection,
const string& location,
bool effectivenessChangeable =
false,
81 time_t changeFrequency = -1,
int variableTimes = -1);
96 const vector<int>&
getUnitIDs()
const {
return m_unitIDs; }
97 const vector<int>& getUnitIDsByIndex(){
return m_unitIDsSeries[m_seriesIndex]; }
98 const map<int, int>& getUpdateTimesByIndex(){
return m_unitUpdateTimes[m_seriesIndex]; }
99 void increaseSeriesIndex(){ m_seriesIndex++; }
100 int getSeriesIndex() {
return m_seriesIndex; }
110 string m_mgtFieldsName;
114 vector<int> m_unitIDs;
116 vector<vector<int> > m_unitIDsSeries;
118 vector<map<int,int> > m_unitUpdateTimes;
124 map<int, BMPArealStruct*> m_bmpStructMap;
Base namespace for implementation of BMP configuration.
Class to store parameter item information.
#define OVERRIDE
A compatible reference to override or blank if not supported by the compiler.
Definition: basic.h:160
Initiate Areal Structural BMPs.
Definition: BMPArealStructFactory.h:75
const vector< int > & getUnitIDs() const
Get effect unit IDs.
Definition: BMPArealStructFactory.h:96
void Dump(std::ostream *fs) OVERRIDE
Output.
int * GetRasterData() OVERRIDE
Get management fields data.
Definition: BMPArealStructFactory.h:93
BMPArealStructFactory(int scenarioId, int bmpId, int subScenario, int bmpType, int bmpPriority, vector< string > &distribution, const string &collection, const string &location, bool effectivenessChangeable=false, time_t changeFrequency=-1, int variableTimes=-1)
Constructor.
const map< int, BMPArealStruct * > & getBMPsSettings() const
Get areal BMP parameters.
Definition: BMPArealStructFactory.h:103
void setRasterData(map< string, IntRaster * > &sceneRsMap) OVERRIDE
Set raster data if needed.
~BMPArealStructFactory()
Destructor.
void loadBMP(MongoClient *conn, const string &bmpDBName) OVERRIDE
Load BMP parameters from MongoDB.
Manage areal Structural BMP data, inherited from ParamInfo.
Definition: BMPArealStructFactory.h:31
vector< int > & getSuitableLanduse()
Get suitable landuse.
Definition: BMPArealStructFactory.h:40
map< string, ParamInfo< FLTPT > * > & getParameters()
Get parameters.
Definition: BMPArealStructFactory.h:42
time_t getLastUpdateTime() const
getter and setter for last update time
Definition: BMPArealStructFactory.h:48
string getBMPName()
Get name.
Definition: BMPArealStructFactory.h:38
~BMPArealStruct()
Destructor.
BMPArealStruct(const bson_t *&bsonTab, bson_iter_t &iter)
Constructor.
Base class of all kind of BMPs Factory.
Definition: BMPFactory.h:33
int bmpType()
Get BMP type 1 - reach BMPs which are attached to specific reaches and will change the character of t...
int bmpPriority()
Get BMP priority.
Base type of all interfaces.
Definition: basic.h:407
A simple wrapper of the class of MongoDB Client mongoc_client_t.
Definition: db_mongoc.h:46
All BMPs scenario related data, classes, and functions.
Definition: BMPArealSourceFactory.h:22
Common Cross-platform Geographic Library (CCGL)