22 lines
492 B
C++
Executable File
22 lines
492 B
C++
Executable File
#ifndef UNIT_CONVERTER_H
|
|
#define UNIT_CONVERTER_H
|
|
|
|
#include <string>
|
|
|
|
namespace unitConvertion {
|
|
|
|
double length(double value,
|
|
const std::string& unit_from,
|
|
const std::string& unit_to);
|
|
|
|
double lengthPrefactor(const std::string& unit);
|
|
|
|
double energy(double value,
|
|
const std::string& unit_from,
|
|
const std::string& unit_to);
|
|
double energyPrefactor(const std::string& unit);
|
|
|
|
}; // namespace unitConvertion
|
|
|
|
#endif /* UNIT_CONVERTER_H */
|