bmps::Scenario Class Reference

Main class of scenario in BMP database. More...

#include <Scenario.h>

Inheritance diagram for bmps::Scenario:
ccgl::Interface

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
 

Detailed Description

Main class of scenario in BMP database.

Scenario contains a collection of BMPFactory. Each BMPFactory is corresponding to one type of BMP.

Usage:

Revised:


The documentation for this class was generated from the following file: