Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions
convert_units_gnu Class Reference

Convert units using a system call to GNU units. More...

#include <convert_units_gnu.h>

Inheritance diagram for convert_units_gnu:
convert_units

Detailed Description

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

Member Function Documentation

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 $ \hbar $ is unitless.

Note:
Not all of the GSL constants or the canonical GNU units conversions are given here.

Definition at line 204 of file convert_units_gnu.h.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.