![]() |
Object-oriented Scientific Computing Library: Version 0.910
|
Convert units using a system call to GNU units. More...
#include <convert_units_gnu.h>
Experimental.
Definition at line 43 of file convert_units_gnu.h.
Public Member Functions | |
virtual double | convert (std::string from, std::string to, double val) |
Return the value val after converting using units from and to . | |
int | make_units_dat (std::string fname, bool c_1=false, bool hbar_1=false, bool K_1=false) |
Make a GNU units.dat file from the GSL constants. | |
Data Fields | |
Strings to form \c units command | |
std::string | prefix |
std::string | midfix |
std::string | suffix |
int convert_units_gnu::make_units_dat | ( | std::string | fname, |
bool | c_1 = false , |
||
bool | hbar_1 = false , |
||
bool | K_1 = false |
||
) | [inline] |
If c_1
is true, then the second is defined in terms of meters so that the speed of light is unitless. If hbar_1
is true, then the kilogram is defined in terms of s/m^2
so that is unitless.
Definition at line 204 of file convert_units_gnu.h.
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).