42 static const word name1 =
"value1", name2 =
"value2";
43 const bool found1 =
dict.found(name1), found2 =
dict.found(name2);
48 <<
"Both keywords " << name1 <<
" and " << name2
49 <<
" are defined in dictionary " <<
dict.name()
53 if (!found1 && !found2)
56 <<
"Neither keywords " << name1 <<
" nor " << name2
57 <<
" are defined in dictionary " <<
dict.name()
66 found2 ? name2 : name1,
67 {found2 ? units.
y : units.
x, units.
value},
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitSets &units, const dictionary &dict)
Select from dictionary.
Function2 which returns a Function1 using just one of the arguments given to the function2....
virtual ~Function12()
Destructor.
virtual void write(Ostream &os, const unitSets &units) const
Write data to dictionary stream.
Function12(const word &name, const unitSets &units, const dictionary &dict)
Construct from name and dictionary.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
unitSet value
Unit conversion for result values.
unitSet y
Unit conversion for y-axis values.
unitSet x
Unit conversion for x-axis values.