Stride Reference Manual
- generated for commit 9643b11
|
Controls a geo-population generation run initiated with the command line interface (cli). More...
#include <GenPopController.h>
Public Member Functions | |
GenPopController (const boost::property_tree::ptree &config, const std::string &name="GenPopController") | |
Straight initialization. More... | |
void | Control () |
Actual run of the simulator. More... | |
Additional Inherited Members | |
![]() | |
ControlHelper () | |
Empty controller: used as target for delegation. More... | |
void | CheckEnv () |
Check install environment. More... | |
void | CheckOutputPrefix () |
void | InstallLogger () |
Make the appropriate logger for cli environment and register as stride_logger. More... | |
void | LogStartup () |
Logs info on setup for cli environment to stride_logger. More... | |
void | RegisterViewers (std::shared_ptr< SimRunner > runner) |
Register the viewers of the SimRunner. More... | |
void | Shutdown () |
Logs info on setup for cli environment to stride_logger. More... | |
ControlHelper (const boost::property_tree::ptree &config, std::string name) | |
Straight initialization. More... | |
~ControlHelper () | |
Simple destructor. More... | |
![]() | |
boost::property_tree::ptree | m_config |
Main configuration for run and sim. More... | |
std::string | m_name |
Contoller's name. More... | |
std::string | m_output_prefix |
Prefix to output (name prefix or prefix dir) More... | |
util::Stopwatch | m_run_clock |
Stopwatch for timing the computation. More... | |
std::shared_ptr< spdlog::logger > | m_stride_logger |
General logger. More... | |
bool | m_use_install_dirs |
Working dir or install dir mode. More... | |
Controls a geo-population generation run initiated with the command line interface (cli).
GeoPopController setup functions include (
Definition at line 44 of file GenPopController.h.
|
explicit |
Straight initialization.
Definition at line 52 of file GenPopController.cpp.
void stride::GenPopController::Control | ( | ) |
Actual run of the simulator.
Definition at line 54 of file GenPopController.cpp.
References stride::GeoPopBuilder::Build(), stride::util::FileSys::BuildPath(), stride::ControlHelper::CheckEnv(), stride::ControlHelper::CheckOutputPrefix(), stride::Population::Create(), geopop::GeoGridWriterFactory::CreateGeoGridWriter(), stride::ControlHelper::InstallLogger(), stride::ControlHelper::LogStartup(), stride::ControlHelper::m_config, and stride::ControlHelper::m_stride_logger.
Referenced by main().