46 System(
const std::string &path =
"");
47 typedef std::shared_ptr<System>
Ptr;
59 const std::string &spec1,
const std::string &spec2);
77 std::string
format()
const;
std::shared_ptr< Impl > m_impl
double operator()(double input) const
void convert_doubles(double *data, size_t length) const
Converter(const Converter &)
Converter & operator=(Converter const &)
System(const std::string &path="")
std::shared_ptr< Impl > m_impl
System & operator=(System const &)
std::shared_ptr< System > Ptr
DateTime date(double T, const std::string &calendar) const
std::string format() const
Unit & operator=(const Unit &other)
System::Ptr system() const
double time(const DateTime &d, const std::string &calendar) const
Unit(System::Ptr system, const std::string &spec)
std::shared_ptr< Impl > m_impl
bool is_convertible(const Unit &other) const
bool are_convertible(const Unit &u1, const Unit &u2)
double convert(System::Ptr system, double input, const std::string &spec1, const std::string &spec2)
Convert a quantity from unit1 to unit2.
static std::string calendar(const File *input_file, const Config &config, const Logger &log)