SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
RngConfig.cpp
Go to the documentation of this file.
1
17
18#include <boost/thread.hpp>
19
21
22using namespace Euclid::Configuration;
23namespace po = boost::program_options;
24
25namespace SourceXtractor {
26
27static const std::string RNG_SEED {"rng-seed"};
28
29RngConfig::RngConfig(long manager_id) : Configuration(manager_id), m_seed(42) {}
30
32 return { {"Random number generation", {
33 {RNG_SEED.c_str(), po::value<unsigned int>()->default_value(42), "Random number generator seed"},
34 }}};
35}
36
38 m_seed = args.at(RNG_SEED).as<unsigned int>();
39}
40
41} // SourceXtractor namespace
42
T at(T... args)
std::map< std::string, boost::program_options::variable_value > UserValues
std::map< std::string, OptionDescriptionList > getProgramOptions() override
Definition RngConfig.cpp:31
RngConfig(long manager_id)
Definition RngConfig.cpp:29
void initialize(const UserValues &args) override
Definition RngConfig.cpp:37
static const std::string RNG_SEED
Definition RngConfig.cpp:27