SourceXtractorPlusPlus  0.15
Please provide a description of the project.
MagnitudeConfig.cpp
Go to the documentation of this file.
1 
17 /*
18  * MagnitudeConfig.cpp
19  *
20  * Created on: Sep 29, 2016
21  * Author: mschefer
22  */
23 
25 
26 using namespace Euclid::Configuration;
27 namespace po = boost::program_options;
28 
29 namespace SourceXtractor {
30 
31 static const std::string MAG_ZEROPOINT {"magnitude-zero-point"};
32 
33 MagnitudeConfig::MagnitudeConfig(long manager_id) :
34  Configuration(manager_id),
35  m_magnitude_zero_point(0) {
36 }
37 
39  return { {"Magnitude", {
40  {MAG_ZEROPOINT.c_str(), po::value<double>()->default_value(0.0), "Magnitude zero point calibration"}
41  }}};
42 }
43 
45  if (args.count(MAG_ZEROPOINT) != 0) {
46  m_magnitude_zero_point = SeFloat(args.at(MAG_ZEROPOINT).as<double>());
47  }
48 }
49 
50 }
51 
T at(T... args)
T c_str(T... args)
std::map< std::string, OptionDescriptionList > getProgramOptions() override
void initialize(const UserValues &args) override
T count(T... args)
SeFloat32 SeFloat
Definition: Types.h:32
static const std::string MAG_ZEROPOINT