31 void Foam::namedUnitConversion::readName(
const entry&
e)
35 dynamicCast<const primitiveEntry>(
e).write(oss,
true);
45 void Foam::namedUnitConversion::readName
48 const dictionary&
dict
65 readName(keyword,
dict);
77 readName(keyword,
dict);
96 is.
check(
"Istream& operator>>(Istream&, namedUnitConversion&)");
104 os << u.name_.c_str();
107 os.
check(
"Ostream& operator<<(Ostream&, const namedUnitConversion&)");
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
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....
const entry & lookupEntry(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream if present otherwise error.
bool readIfPresent(const word &keyword, const dictionary &)
Update if found in the dictionary.
void read(const word &keyword, const dictionary &)
Update.
A keyword and a list of tokens is a 'primitiveEntry'. An primitiveEntry can be read,...
string & replace(const string &oldStr, const string &newStr, size_type start=0)
In this string replace first occurrence of sub-string oldStr.
Unit conversion structure. Contains the associated dimensions and the multiplier with which to conver...
bool readIfPresent(const word &keyword, const dictionary &)
Update if found in the dictionary.
void read(const word &keyword, const dictionary &)
Update.
void reset(const unitConversion &)
Reset the unit conversion.
A class for handling words, derived from string.
static const word null
An empty word.
const dimensionedScalar e
Elementary charge.
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)