@@ -187,62 +187,63 @@ class ArgsManager
187
187
void ParseParameters (int argc, const char *const argv[]);
188
188
void ReadConfigFile (const std::string& confPath);
189
189
std::vector<std::string> GetArgs (const std::string& strArg);
190
- /* *
191
- * Return true if the given argument has been manually set
192
- *
193
- * @param strArg Argument to get (e.g. "-foo")
194
- * @return true if the argument has been set
195
- */
196
- bool IsArgSet (const std::string& strArg);
197
-
198
- /* *
199
- * Return string argument or default value
200
- *
201
- * @param strArg Argument to get (e.g. "-foo")
202
- * @param default (e.g. "1")
203
- * @return command-line argument or default value
204
- */
205
- std::string GetArg (const std::string& strArg, const std::string& strDefault);
206
-
207
- /* *
208
- * Return integer argument or default value
209
- *
210
- * @param strArg Argument to get (e.g. "-foo")
211
- * @param default (e.g. 1)
212
- * @return command-line argument (0 if invalid number) or default value
213
- */
214
- int64_t GetArg (const std::string& strArg, int64_t nDefault);
215
-
216
- /* *
217
- * Return boolean argument or default value
218
- *
219
- * @param strArg Argument to get (e.g. "-foo")
220
- * @param default (true or false)
221
- * @return command-line argument or default value
222
- */
223
- bool GetBoolArg (const std::string& strArg, bool fDefault );
224
-
225
- /* *
226
- * Set an argument if it doesn't already have a value
227
- *
228
- * @param strArg Argument to set (e.g. "-foo")
229
- * @param strValue Value (e.g. "1")
230
- * @return true if argument gets set, false if it already had a value
231
- */
232
- bool SoftSetArg (const std::string& strArg, const std::string& strValue);
233
-
234
- /* *
235
- * Set a boolean argument if it doesn't already have a value
236
- *
237
- * @param strArg Argument to set (e.g. "-foo")
238
- * @param fValue Value (e.g. false)
239
- * @return true if argument gets set, false if it already had a value
240
- */
241
- bool SoftSetBoolArg (const std::string& strArg, bool fValue );
242
190
243
- // Forces an arg setting. Called by SoftSetArg() if the arg hasn't already
244
- // been set. Also called directly in testing.
245
- void ForceSetArg (const std::string& strArg, const std::string& strValue);
191
+ /* *
192
+ * Return true if the given argument has been manually set
193
+ *
194
+ * @param strArg Argument to get (e.g. "-foo")
195
+ * @return true if the argument has been set
196
+ */
197
+ bool IsArgSet (const std::string& strArg);
198
+
199
+ /* *
200
+ * Return string argument or default value
201
+ *
202
+ * @param strArg Argument to get (e.g. "-foo")
203
+ * @param default (e.g. "1")
204
+ * @return command-line argument or default value
205
+ */
206
+ std::string GetArg (const std::string& strArg, const std::string& strDefault);
207
+
208
+ /* *
209
+ * Return integer argument or default value
210
+ *
211
+ * @param strArg Argument to get (e.g. "-foo")
212
+ * @param default (e.g. 1)
213
+ * @return command-line argument (0 if invalid number) or default value
214
+ */
215
+ int64_t GetArg (const std::string& strArg, int64_t nDefault);
216
+
217
+ /* *
218
+ * Return boolean argument or default value
219
+ *
220
+ * @param strArg Argument to get (e.g. "-foo")
221
+ * @param default (true or false)
222
+ * @return command-line argument or default value
223
+ */
224
+ bool GetBoolArg (const std::string& strArg, bool fDefault );
225
+
226
+ /* *
227
+ * Set an argument if it doesn't already have a value
228
+ *
229
+ * @param strArg Argument to set (e.g. "-foo")
230
+ * @param strValue Value (e.g. "1")
231
+ * @return true if argument gets set, false if it already had a value
232
+ */
233
+ bool SoftSetArg (const std::string& strArg, const std::string& strValue);
234
+
235
+ /* *
236
+ * Set a boolean argument if it doesn't already have a value
237
+ *
238
+ * @param strArg Argument to set (e.g. "-foo")
239
+ * @param fValue Value (e.g. false)
240
+ * @return true if argument gets set, false if it already had a value
241
+ */
242
+ bool SoftSetBoolArg (const std::string& strArg, bool fValue );
243
+
244
+ // Forces an arg setting. Called by SoftSetArg() if the arg hasn't already
245
+ // been set. Also called directly in testing.
246
+ void ForceSetArg (const std::string& strArg, const std::string& strValue);
246
247
};
247
248
248
249
extern ArgsManager gArgs ;
0 commit comments