00001 00004 /* Copyright (C) 2002 - 2010, Bernd Speiser */ 00005 00006 /* This file is part of PhysicalQuantities. 00007 00008 PhysicalQuantities is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License 00010 as published by the Free Software Foundation; either version 2 00011 of the License, or (at your option) any later version. 00012 00013 PhysicalQuantities is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software 00020 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00021 02111-1307, USA. 00022 */ 00023 00024 #ifndef _Acceleration_cc 00025 #define _Acceleration_cc 00026 00027 // Quantity includes 00028 #include "Quantities/PhysicalQuantities/Acceleration.h" 00029 00030 namespace quantity { 00031 namespace acceleration { 00032 /* the metre per square second, m/s^2 */ 00033 00034 template<> const double AccelerationComposedUnit::StandardFactor = 1.0; 00035 00036 /* the Gal */ 00037 00038 template<> const std::string Gal::Namestring = "gal"; 00039 template<> const std::string Gal::Symbolstring = "Gal"; 00040 template<> const bool Gal::SI = false; 00041 template<> const bool Gal::Exact = true; 00042 template<> const double Gal::StandardFactor = 1.0e-2; 00043 00044 /* the acceleration of free fall */ 00045 00046 template<> const 00047 std::string StandardAccelerationOfFreeFall::Namestring 00048 = "standardaccelerationoffreefall"; 00049 template<> const 00050 std::string StandardAccelerationOfFreeFall::Symbolstring = "g"; 00051 template<> const bool StandardAccelerationOfFreeFall::SI = false; 00052 template<> const bool StandardAccelerationOfFreeFall::Exact = true; 00053 template<> const double StandardAccelerationOfFreeFall::StandardFactor 00054 = 9.80665; 00055 00056 } 00057 00058 const std::string 00059 QuantityTraits<acceleration::Class>::NameString (void) 00060 {return "acceleration";} 00061 const std::string 00062 QuantityTraits<acceleration::Class>::SymbolString (void) {return "a";} 00063 00064 } 00065 00066 #endif /* _Acceleration_cc */