GPLIB++
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
Joint_Inversion
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;
15
SurfInvConf::SurfInvConf
()
16
{
17
// TODO Auto-generated constructor stub
18
19
}
20
21
SurfInvConf::~SurfInvConf
()
22
{
23
// TODO Auto-generated destructor stub
24
}
25
26
std::string
dispdata
;
27
int
surffitexponent
;
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
}
gplib::SurfInvConf::surffitexponent
int surffitexponent
Definition:
SurfInvConf.h:23
gplib::surffitexponent
int surffitexponent
Definition:
SurfInvConf.cpp:27
SurfInvConf.h
gplib::SurfInvConf::GetData
void GetData(std::ifstream &instream)
Definition:
SurfInvConf.cpp:30
gplib::SurfInvConf::~SurfInvConf
virtual ~SurfInvConf()
Definition:
SurfInvConf.cpp:21
gplib::SurfInvConf::SurfInvConf
SurfInvConf()
Definition:
SurfInvConf.cpp:15
gplib::SurfInvConf::dispdata
std::string dispdata
Definition:
SurfInvConf.h:22
gplib::surferror
double surferror
Definition:
SurfInvConf.cpp:28
gplib::dispdata
std::string dispdata
Definition:
SurfInvConf.cpp:26
gplib::SurfInvConf::surferror
double surferror
Definition:
SurfInvConf.h:24
Generated on Wed May 25 2016 14:21:07 for GPLIB++ by
1.8.6