69 |
11 Feb 06 |
jari |
// $Id$ |
69 |
11 Feb 06 |
jari |
2 |
|
95 |
05 Apr 06 |
jari |
3 |
/* |
95 |
05 Apr 06 |
jari |
Copyright (C) 2005, 2006 Jari Häkkinen |
95 |
05 Apr 06 |
jari |
5 |
|
95 |
05 Apr 06 |
jari |
This file is part of WeNNI, |
825 |
26 Nov 08 |
jari |
http://baseplugins.thep.lu.se/wiki/se.lu.thep.WeNNI |
95 |
05 Apr 06 |
jari |
8 |
|
95 |
05 Apr 06 |
jari |
WeNNI is free software; you can redistribute it and/or modify it |
95 |
05 Apr 06 |
jari |
under the terms of the GNU General Public License as published by |
824 |
26 Nov 08 |
jari |
the Free Software Foundation; either version 3 of the License, or |
95 |
05 Apr 06 |
jari |
(at your option) any later version. |
95 |
05 Apr 06 |
jari |
13 |
|
95 |
05 Apr 06 |
jari |
WeNNI is distributed in the hope that it will be useful, but WITHOUT |
95 |
05 Apr 06 |
jari |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
95 |
05 Apr 06 |
jari |
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
95 |
05 Apr 06 |
jari |
License for more details. |
95 |
05 Apr 06 |
jari |
18 |
|
95 |
05 Apr 06 |
jari |
You should have received a copy of the GNU General Public License |
824 |
26 Nov 08 |
jari |
along with WeNNI. If not, see <http://www.gnu.org/licenses/>. |
95 |
05 Apr 06 |
jari |
21 |
*/ |
95 |
05 Apr 06 |
jari |
22 |
|
69 |
11 Feb 06 |
jari |
23 |
#ifndef _theplu_wenni_nnifileconverter_parameter_ |
69 |
11 Feb 06 |
jari |
24 |
#define _theplu_wenni_nnifileconverter_parameter_ |
69 |
11 Feb 06 |
jari |
25 |
|
69 |
11 Feb 06 |
jari |
26 |
#include <string> |
69 |
11 Feb 06 |
jari |
27 |
|
69 |
11 Feb 06 |
jari |
28 |
namespace theplu { |
69 |
11 Feb 06 |
jari |
29 |
namespace wenni { |
69 |
11 Feb 06 |
jari |
30 |
namespace nnifileconverter { |
69 |
11 Feb 06 |
jari |
31 |
|
69 |
11 Feb 06 |
jari |
// class for command line options. |
69 |
11 Feb 06 |
jari |
33 |
class Parameter { |
69 |
11 Feb 06 |
jari |
34 |
public: |
69 |
11 Feb 06 |
jari |
35 |
Parameter(const Parameter&); // not implemented |
69 |
11 Feb 06 |
jari |
36 |
Parameter(const int argc,const char *argv[]); |
69 |
11 Feb 06 |
jari |
37 |
|
69 |
11 Feb 06 |
jari |
38 |
inline const double beta(void) const { return beta_; } |
69 |
11 Feb 06 |
jari |
39 |
inline const std::string& bg2(void) const { return bg2_; } |
69 |
11 Feb 06 |
jari |
40 |
inline const std::string& bg1(void) const { return bg1_; } |
69 |
11 Feb 06 |
jari |
41 |
inline const std::string& bgstd1(void) const { return bgstd1_; } |
69 |
11 Feb 06 |
jari |
42 |
inline const std::string& bgstd2(void) const { return bgstd2_; } |
69 |
11 Feb 06 |
jari |
43 |
inline const std::string& datatype(void) const { return datatype_; } |
69 |
11 Feb 06 |
jari |
44 |
inline const std::string& fg1(void) const { return fg1_; } |
69 |
11 Feb 06 |
jari |
45 |
inline const std::string& fg2(void) const { return fg2_; } |
69 |
11 Feb 06 |
jari |
46 |
inline const std::string& logratio(void) const { return logratio_; } |
69 |
11 Feb 06 |
jari |
47 |
inline const std::string& weight(void) const { return weight_; } |
69 |
11 Feb 06 |
jari |
48 |
|
69 |
11 Feb 06 |
jari |
49 |
private: |
69 |
11 Feb 06 |
jari |
50 |
void analyse(void); |
69 |
11 Feb 06 |
jari |
51 |
void defaults(void); |
69 |
11 Feb 06 |
jari |
52 |
void help(void) const; |
88 |
04 Apr 06 |
jari |
53 |
void version(void) const; |
69 |
11 Feb 06 |
jari |
54 |
|
69 |
11 Feb 06 |
jari |
55 |
double beta_; |
69 |
11 Feb 06 |
jari |
56 |
std::string bg1_; |
69 |
11 Feb 06 |
jari |
57 |
std::string bg2_; |
69 |
11 Feb 06 |
jari |
58 |
std::string bgstd1_; |
69 |
11 Feb 06 |
jari |
59 |
std::string bgstd2_; |
69 |
11 Feb 06 |
jari |
60 |
std::string datatype_; |
69 |
11 Feb 06 |
jari |
61 |
std::string fg1_; |
69 |
11 Feb 06 |
jari |
62 |
std::string fg2_; |
69 |
11 Feb 06 |
jari |
63 |
std::string logratio_; |
69 |
11 Feb 06 |
jari |
64 |
std::string weight_; |
69 |
11 Feb 06 |
jari |
65 |
}; |
69 |
11 Feb 06 |
jari |
66 |
|
69 |
11 Feb 06 |
jari |
67 |
}}} // of namespace nnifileconverter, wenni and namespace theplu |
69 |
11 Feb 06 |
jari |
68 |
|
69 |
11 Feb 06 |
jari |
69 |
#endif |