81 #ifndef __GyotoConverters_H_
82 #define __GyotoConverters_H_
177 double ToMeters(
double value,
const std::string &unit,
203 double FromMeters(
double value,
const std::string &unit,
226 double ToSeconds(
double value,
const std::string &unit,
249 double FromSeconds(
double value,
const std::string &unit,
265 double ToKilograms(
double value,
const std::string & unit);
280 double FromKilograms(
double value,
const std::string & unit);
364 double ToHerz(
double value,
const std::string &unit);
379 double FromHerz(
double value,
const std::string &unit);
418 Unit(const std::string &unit);
428 Unit(char const * const unit);
445 double
To (double val, const Unit &from_unit);
455 double
From (double val, const Unit &to_unit);
462 operator std::string() const ;
469 operator ut_unit*() const ;
475 cv_converter * converter_;
479 Converter(const Gyoto::Units::Unit& from,
480 const Gyoto::Units::Unit& to);
486 void reset(const Gyoto::Units::Unit& from,
487 const Gyoto::Units::Unit& to);
503 double operator()(double value) const ;