Manager class for the Converter monostate class. More...
#include <Converter.h>
Public Member Functions | |
ConverterDataFiller () | |
The constructor is all that's needed to fill up the class. | |
Private Member Functions | |
void | setFactors (const std::string unit1, const std::string unit2, double factor) |
Manager class for the Converter monostate class.
ConverterDataFiller::ConverterDataFiller | ( | ) |
The constructor is all that's needed to fill up the class.
We need to include here all possible combinations of units that we are expected to encounter.
References setFactors().
void ConverterDataFiller::setFactors | ( | const std::string | unit1, | |
const std::string | unit2, | |||
double | factor | |||
) | [private] |
Initialises the std::map (dictionary) in the Converter class with the factor that converts between the two given units. The given factor in the argument list is the number that converts unit1 to unit2.
References Converter::convFactor.
Referenced by ConverterDataFiller().