Class for writing command-line option files for the solver modules.
More...
#include <FFaOptionFileCreator.H>
|
| | FFaOptionFileCreator (const std::string &fname="") |
| | Default constructor. More...
|
| |
| void | add (const std::string &optionName, bool val) |
| | Adds a bool-valued command-line option. More...
|
| |
| void | add (const std::string &optionName, int val) |
| | Adds an integer-valued command-line option. More...
|
| |
| void | add (const std::string &optionName, double val) |
| | Adds a real-valued (double) command-line option. More...
|
| |
| void | add (const std::string &optionName, const std::pair< double, double > &val) |
| | Adds a two-valued real (double) command-line option. More...
|
| |
| void | add (const std::string &optionName, const FaVec3 &val) |
| | Adds a FaVec3-valued command-line option. More...
|
| |
| void | add (const std::string &optionName, const std::vector< double > &val) |
| | Adds a vector-valued (double) command-line option. More...
|
| |
| void | add (const std::string &optionName, const std::string &val, bool addQuotes=true) |
| | Adds a string-valued command-line option. More...
|
| |
| void | addComment (const std::string &comment, bool lineInFront=false) |
| | Adds a comment line. More...
|
| |
| std::vector< std::string > | getOptVector () const |
| | Returns all options with values as a vector of strings. More...
|
| |
| bool | writeOptFile () const |
| | Writes the command-line options to file. More...
|
| |
|
| typedef std::pair< std::string, std::string > | Option |
| | Convenience type definition. More...
|
| |
Class for writing command-line option files for the solver modules.
◆ Option
Convenience type definition.
◆ FFaOptionFileCreator()
| FFaOptionFileCreator::FFaOptionFileCreator |
( |
const std::string & |
fname = "" | ) |
|
|
inline |
◆ add() [1/7]
| void FFaOptionFileCreator::add |
( |
const std::string & |
optionName, |
|
|
bool |
val |
|
) |
| |
Adds a bool-valued command-line option.
◆ add() [2/7]
| void FFaOptionFileCreator::add |
( |
const std::string & |
optionName, |
|
|
const FaVec3 & |
val |
|
) |
| |
Adds a FaVec3-valued command-line option.
◆ add() [3/7]
| void FFaOptionFileCreator::add |
( |
const std::string & |
optionName, |
|
|
const std::pair< double, double > & |
val |
|
) |
| |
Adds a two-valued real (double) command-line option.
◆ add() [4/7]
| void FFaOptionFileCreator::add |
( |
const std::string & |
optionName, |
|
|
const std::string & |
val, |
|
|
bool |
addQuotes = true |
|
) |
| |
Adds a string-valued command-line option.
◆ add() [5/7]
| void FFaOptionFileCreator::add |
( |
const std::string & |
optionName, |
|
|
const std::vector< double > & |
val |
|
) |
| |
Adds a vector-valued (double) command-line option.
◆ add() [6/7]
| void FFaOptionFileCreator::add |
( |
const std::string & |
optionName, |
|
|
double |
val |
|
) |
| |
Adds a real-valued (double) command-line option.
◆ add() [7/7]
| void FFaOptionFileCreator::add |
( |
const std::string & |
optionName, |
|
|
int |
val |
|
) |
| |
Adds an integer-valued command-line option.
◆ addComment()
| void FFaOptionFileCreator::addComment |
( |
const std::string & |
comment, |
|
|
bool |
lineInFront = false |
|
) |
| |
◆ getOptVector()
| std::vector< std::string > FFaOptionFileCreator::getOptVector |
( |
| ) |
const |
Returns all options with values as a vector of strings.
◆ writeOptFile()
| bool FFaOptionFileCreator::writeOptFile |
( |
| ) |
const |
Writes the command-line options to file.
◆ myFilename
| std::string FFaOptionFileCreator::myFilename |
|
private |
Name of the file to be written.
◆ myOptions
| std::vector<Option> FFaOptionFileCreator::myOptions |
|
private |
List of command-line options with value.
The documentation for this class was generated from the following files: