DUDS
Distributed Update of Data from Something
Constants.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of the DUDS project. It is subject to the BSD-style
3  * license terms in the LICENSE file found in the top-level directory of this
4  * distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
5  * No part of DUDS, including this file, may be copied, modified, propagated,
6  * or distributed except according to the terms contained in the LICENSE file.
7  *
8  * Copyright (C) 2017 Jeff Jackowski
9  */
10 #ifndef CONSTANTS_HPP
11 #define CONSTANTS_HPP
12 
13 #include <duds/data/Quantity.hpp>
14 
15 namespace duds { namespace data {
16 
23 namespace constants {
24 
26 using duds::data::Unit;
27 using namespace duds::data::units;
28 
35  9.80665, // Meter / (Second * Second)
36  // A cd K kg m mol s rad sr
37  DUDS_UNIT_VALUE( 0, 0, 0, 0, 1, 0, -2, 0, 0)
38 );
39 
40 } } }
41 
42 #endif // #ifndef CONSTANTS_HPP
A container for a value and a unit to better describe the value.
Definition: Quantity.hpp:37
A collection of Unit objects representing commonly used SI units.
Definition: Units.hpp:27
Represents an SI unit, either base or derived.
Definition: Unit.hpp:178
constexpr Quantity EarthSurfaceGravity(9.80665,)
A definition for Earth-normal acceleration from gravity that comes from the 1901 General Conference o...
#define DUDS_UNIT_VALUE(A, cd, K, kg, m, mol, s, rad, sr)
Creates the internal value used by duds::Unit in a way that allows the compiler to generate a constan...
Definition: Unit.hpp:678