Main class of scenario in BMP database. More...
#include <Scenario.h>
Public Member Functions | |
| 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. | |
| ~Scenario () | |
| Destructor. | |
| int | ID () const |
| Get scenario ID, base scenario iD is 0. | |
| bool | IsBaseScenario () |
| If this is base scenario. | |
| string | Name () |
| Get scenario name. | |
| map< int, BMPFactory * > & | GetBMPFactories () |
| Get BMPs Factories. | |
| void | Dump (string &fileName) |
| Write all BMPs information of this scenario to a text file. | |
| 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 ELSEWHERE! | |
| void | setRasterForEachBMP () |
| set raster data for BMPs | |
Main class of scenario in BMP database.
Scenario contains a collection of BMPFactory. Each BMPFactory is corresponding to one type of BMP.
Usage:
Revised: