GPLIB++
SurfInvConf.cpp
Go to the documentation of this file.
1 //============================================================================
2 // Name : SurfInvConf.cpp
3 // Author : Apr 8, 2010
4 // Version :
5 // Copyright : 2010, mmoorkamp
6 //============================================================================
7 
8 
9 #include "SurfInvConf.h"
10 #include <boost/program_options.hpp>
11 namespace gplib
12  {
13 
14  namespace po = boost::program_options;
16  {
17  // TODO Auto-generated constructor stub
18 
19  }
20 
22  {
23  // TODO Auto-generated destructor stub
24  }
25 
26  std::string dispdata;
28  double surferror;
29 
30  void SurfInvConf::GetData(std::ifstream &instream)
31  {
32  po::options_description desc("Surface wave inversion options");
33  desc.add_options()("dispdata", po::value(&dispdata), "")(
34  "surffitexponent", po::value(&surffitexponent)->default_value(2), "")("surferror",
35  po::value(&surferror)->default_value(0.02), "");
36 
37  po::variables_map vm;
38  po::store(po::parse_config_file(instream, desc, true), vm);
39  po::notify(vm);
40 
41  }
42  }
int surffitexponent
Definition: SurfInvConf.cpp:27
void GetData(std::ifstream &instream)
Definition: SurfInvConf.cpp:30
virtual ~SurfInvConf()
Definition: SurfInvConf.cpp:21
std::string dispdata
Definition: SurfInvConf.h:22
double surferror
Definition: SurfInvConf.cpp:28
std::string dispdata
Definition: SurfInvConf.cpp:26