#include <IUnitInterpreter.h>
Definition at line 19 of file IUnitInterpreter.h.
◆ ~IUnitInterpreter()
virtual ExpressionParsing::IUnitInterpreter::~IUnitInterpreter |
( |
| ) |
|
|
inlinevirtual |
◆ isKnownUnit()
bool ExpressionParsing::IUnitInterpreter::isKnownUnit |
( |
const std::string & |
unitname | ) |
const |
◆ unitMap()
virtual const std::map<std::string, double>& ExpressionParsing::IUnitInterpreter::unitMap |
( |
| ) |
const |
|
privatepure virtual |
◆ unitValue()
double ExpressionParsing::IUnitInterpreter::unitValue |
( |
const std::string & |
unitname | ) |
const |
Definition at line 22 of file IUnitInterpreter.cxx.
24 typedef std::map<std::string, double>::const_iterator Iterator;
25 const std::map<std::string, double> &theMap =
unitMap();
26 for (Iterator
it = theMap.begin();
it != theMap.end(); ++
it) {
27 if (
it->first == unitname) {
32 throw std::runtime_error(
"Trying to access unknown unit: "+unitname);
The documentation for this class was generated from the following files: