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 undefined in dictionary " <<
dict.name()
53 if (!found1 && !found2)
56 <<
"Neither keywords " << name1 <<
" or " << name2
57 <<
" are defined in dictionary " <<
dict.name()
66 found2 ? name2 : name1,
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
Function2 which returns a Function1 using just one of the arguments given to the function2....
Function12(const word &name, const unitConversions &units, const dictionary &dict)
Construct from name and dictionary.
virtual ~Function12()
Destructor.
virtual void write(Ostream &os, const unitConversions &units) const
Write data to dictionary stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
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 bool)
Return a word representation of a bool.
const HashTable< unitConversion > & units()
Get the table of unit conversions.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)