00001 00005 /* Copyright (C) 2002 - 2009, Bernd Speiser */ 00006 00007 /* This file is part of PhysicalQuantities. 00008 00009 PhysicalQuantities is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU General Public License 00011 as published by the Free Software Foundation; either version 2 00012 of the License, or (at your option) any later version. 00013 00014 PhysicalQuantities is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00022 02111-1307, USA. 00023 */ 00024 00025 #ifndef _Mass_cc 00026 #define _Mass_cc 00027 00028 // Quantity includes 00029 #include "PhysicalQuantities/Mass.h" 00030 00031 namespace quantity { 00032 namespace mass { 00033 00034 /* definition of Mass units */ 00035 /* the gram and prefixed grams; the SI unit is the kilogramn */ 00036 00037 template<> const std::string Grams::Basename = "gram"; 00038 template<> const std::string Grams::Basesymbol = "g"; 00039 template<> const bool Grams::SI = true; 00040 00041 /* the electron mass */ 00042 00043 template<> const std::string ElectronMass::Namestring = "electron mass"; 00044 template<> const std::string ElectronMass::Symbolstring = "m_e"; 00045 template<> const bool ElectronMass::SI = false; 00046 00047 /* the Dalton */ 00048 00049 template<> const std::string Dalton::Namestring = "dalton"; 00050 template<> const std::string Dalton::Symbolstring = "Da"; 00051 template<> const bool Dalton::SI = false; 00052 00053 /* the u mass unit */ 00054 00055 template<> const std::string U::Namestring = "u"; 00056 template<> const std::string U::Symbolstring = "u"; 00057 template<> const bool U::SI = false; 00058 00059 /* the gamma */ 00060 00061 template<> const std::string Gamma::Namestring = "gamma"; 00062 template<> const std::string Gamma::Symbolstring = "gamma"; 00063 template<> const bool Gamma::SI = false; 00064 00065 /* the tonne */ 00066 00067 template<> const std::string Tonnes::Basename = "Tonne"; 00068 template<> const std::string Tonnes::Basesymbol = "t"; 00069 template<> const bool Tonnes::SI = false; 00070 00071 /* the pound */ 00072 00073 template<> const std::string Pound::Namestring = "pound"; 00074 template<> const std::string Pound::Symbolstring = "lb"; 00075 template<> const bool Pound::SI = false; 00076 00077 /* the ounce */ 00078 00079 template<> const std::string Ounce::Namestring = "ounce"; 00080 template<> const std::string Ounce::Symbolstring = "oz"; 00081 template<> const bool Ounce::SI = false; 00082 00083 /* the troy ounce */ 00084 00085 template<> const std::string TroyOunce::Namestring = "troy ounce"; 00086 template<> const std::string TroyOunce::Symbolstring = "oz (troy)"; 00087 template<> const bool TroyOunce::SI = false; 00088 00089 /* the grain */ 00090 00091 template<> const std::string Grain::Namestring = "grain"; 00092 template<> const std::string Grain::Symbolstring = "gr"; 00093 template<> const bool Grain::SI = false; 00094 00095 } 00096 00097 const std::string QuantityTraits<mass::Class>::NameString = "mass"; 00098 const std::string QuantityTraits<mass::Class>::SymbolString = "m"; 00099 00100 } 00101 00102 #endif /* _Mass_cc */