10#ifndef SEIMS_SCENARIO_H
11#define SEIMS_SCENARIO_H
51 time_t startTime = -1, time_t endTime = -1);
57 int ID()
const {
return m_sceneID; }
63 string Name() {
return m_name; };
69 void Dump(
string& fileName);
72 void Dump(std::ostream* fs);
86 map<int, BMPFactory *> m_bmpFactories;
90 map<string, IntRaster *> m_sceneRsMap;
96 void loadScenarioName();
102 void loadBMPDetail();
110 vector<string> m_bmpCollections;
Areal source pollution and BMP factory
Base namespace for implementation of BMP configuration
Plant management operations factory
Point source pollution and BMP factory
BMP related const strings
Main class of scenario in BMP database
Definition: Scenario.h:47
void Dump(string &fileName)
Write all BMPs information of this scenario to a text file
map< int, BMPFactory * > & GetBMPFactories()
Get BMPs Factories
Definition: Scenario.h:66
void setRasterForEachBMP()
set raster data for BMPs
int ID() const
Get scenario ID, base scenario iD is 0
Definition: Scenario.h:57
void Dump(std::ostream *fs)
Output all BMPs information of this scenario to ostream
map< string, IntRaster * > & getSceneRasterDataMap()
get scenario required raster map. DO NOT DEFINE AS CONST FUNCTION, SINCE m_sceneRsMap WILL BE CHANGED...
Definition: Scenario.h:75
bool IsBaseScenario()
If this is base scenario
Definition: Scenario.h:60
string Name()
Get scenario name
Definition: Scenario.h:63
Scenario(MongoClient *conn, const string &dbName, int subbsnID=0, int scenarioID=0, time_t startTime=-1, time_t endTime=-1)
Constructor according to BMP database name and scenario ID
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
Simple wrappers of the API of MongoDB C driver mongo-c-driver, see MongoDB C Driver for more informat...
All BMPs scenario related data, classes, and functions.
Definition: BMPArealSourceFactory.h:22
Common Cross-platform Geographic Library (CCGL)