159 <<
"Duplicate unit " << iter().keyword()
160 <<
" read from dictionary"
170 const bool ok =
unitsPtr_->insert(iter.key(), iter());
175 <<
"Duplicate unit " << iter.key()
176 <<
" added to dictionary"
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
An STL-conforming hash table.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Traits class for primitives.
Unit conversion structure. Contains the associated dimensions and the multiplier with which to conver...
T toUser(const T &) const
Convert a value to user units.
T toStandard(const T &) const
Convert a value to standard units.
A class for handling words, derived from string.
Template functions to aid in the implementation of demand driven data.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
dictionary & switchSet(const char *subDictName, dictionary *&subDictPtr)
Internal function to lookup a sub-dictionary from controlDict.
dictionary & controlDict()
The central control dictionary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
scalar radToDeg(const scalar rad)
Convert radians to degrees.
scalar degToRad(const scalar deg)
Convert degrees to radians.
const unitConversion unitAny
word name(const bool)
Return a word representation of a bool.
HashTable< unitConversion > * addedUnitsPtr_(nullptr)
void deleteDemandDrivenData(DataType *&dataPtr)
const dimensionSet dimless
const unitConversion unitPercent
const unitConversion unitNone
const HashTable< unitConversion > & units()
Get the table of unit conversions.
const dictionary & unitsDict()
void addUnits(const word &name, const unitConversion &units)
Add a unit conversion.
HashTable< unitConversion > * unitsPtr_(nullptr)
const unitConversion unitRadians
dictionary * unitsDictPtr_(nullptr)
const unitConversion unitless
deleteUnitsPtr deleteUnitsPtr_
const unitConversion unitRotations
const unitConversion unitDegrees
const unitConversion unitFraction