Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
after_opts.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file basic/options/after_opts.hh
11 /// @brief Option lookup functions emulating Rosetta++ equivalents for transitional use
12 /// @author Stuart G. Mentzer (Stuart_Mentzer@objexx.com) (port to basic::options)
13 /// @author Original author(s) unknown
14 
15 
16 #ifndef INCLUDED_basic_options_after_opts_hh
17 #define INCLUDED_basic_options_after_opts_hh
18 
19 
20 // Utility headers
22 
23 // C++ headers
24 #ifdef WIN32
25 #include <string>
26 #else
27 #include <iosfwd>
28 #endif
29 
30 
31 namespace basic {
32 namespace options {
33 
34 
36 
37 
38 bool
39 truefalseoption( std::string const & str );
40 
41 
42 bool
43 truefalseoption( OptionKey const & key );
44 
45 
46 double
48  std::string const & str
49 );
50 
51 
52 double
54  std::string const & str,
55  double const opt_default
56 );
57 
58 
59 void
61  std::string const & str,
62  double const opt_default,
63  double & rnum
64 );
65 
66 
67 void
69  OptionKey const & key,
70  double const opt_default,
71  double & rnum
72 );
73 
74 
75 void
77  std::string const & str,
78  double const default1,
79  double & rnum1,
80  double const default2,
81  double & rnum2
82 );
83 
84 
85 void
87  OptionKey const & key,
88  double const default1,
89  double & rnum1,
90  double const default2,
91  double & rnum2
92 );
93 
94 
95 void
97  std::string const & str,
98  double const default1,
99  double & rnum1,
100  double const default2,
101  double & rnum2,
102  double const default3,
103  double & rnum3
104 );
105 
106 
107 void
109  OptionKey const & key,
110  double const default1,
111  double & rnum1,
112  double const default2,
113  double & rnum2,
114  double const default3,
115  double & rnum3
116 );
117 
118 
119 int
121  std::string const & str
122 );
123 
124 
125 int
127  std::string const & str,
128  int const opt_default
129 );
130 
131 
132 void
134  std::string const & str,
135  int const opt_default,
136  int & inum
137 );
138 
139 
140 void
142  OptionKey const & key,
143  int const opt_default,
144  int & inum
145 );
146 
147 
148 void
150  std::string const & str,
151  int const opt_default,
152  int & inum,
153  int const opt_default2,
154  int & inum2
155 );
156 
157 
158 void
160  OptionKey const & key,
161  int const opt_default,
162  int & inum,
163  int const opt_default2,
164  int & inum2
165 );
166 
167 
168 void
170  std::string const & str,
171  int const opt_default,
172  int & inum
173 );
174 
175 
176 void
178  OptionKey const & key,
179  int const opt_default,
180  int & inum
181 );
182 
183 
184 std::string
186  std::string const & str
187 );
188 
189 
190 std::string
192  std::string const & str,
193  std::string const & opt_default
194 );
195 
196 
197 void
199  std::string const & str,
200  std::string const & opt_default,
201  std::string & cval
202 );
203 
204 
205 void
207  OptionKey const & key,
208  std::string const & opt_default,
209  std::string & cval
210 );
211 
212 
213 void
215  std::string const & str,
216  char const opt_default,
217  char & cval
218 );
219 
220 
221 void
223  OptionKey const & key,
224  char const opt_default,
225  char & cval
226 );
227 
228 
229 } // namespace options
230 } // namespace basic
231 
232 
233 #endif // INCLUDED_basic_options_after_opts_HH
utility::options::OptionKey forward declarations
std::string stringafteroption(std::string const &str)
Definition: after_opts.cc:344
Abstract automatic hidden index key for options.
Definition: OptionKey.hh:35
utility::options::OptionKey OptionKey
Definition: after_opts.hh:35
OptionKey const & key(std::string const &str)
Get key for an option name.
Definition: after_opts.cc:42
void real3afteroption(std::string const &str, double const default1, double &rnum1, double const default2, double &rnum2, double const default3, double &rnum3)
Definition: after_opts.cc:165
rule< Scanner, options_closure::context_t > options
Definition: Tag.cc:377
int intafteroption(std::string const &str)
Definition: after_opts.cc:211
void optional_positive_intafteroption(std::string const &str, int const opt_default, int &inum)
Definition: after_opts.cc:267
double realafteroption(std::string const &str)
Definition: after_opts.cc:69
bool truefalseoption(std::string const &str)
Definition: after_opts.cc:49
void real2afteroption(std::string const &str, double const default1, double &rnum1, double const default2, double &rnum2)
Definition: after_opts.cc:125
void int2afteroption(std::string const &str, int const opt_default, int &inum, int const opt_default2, int &inum2)
Definition: after_opts.cc:302