Main Page | Class Hierarchy | Class List | File List

Acceleration.cc

Go to the documentation of this file.
00001 
00004 /* Copyright (C) 2002 - 2005, 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 #include "Quantity/Variable.h"
00028 
00029 #include "PhysicalQuantities/Acceleration.h"
00030 
00031 namespace quantity {
00032   namespace acceleration {
00033 /* the metre per square second, m/s^2 */
00034 
00035 /* the Gal */
00036 
00037 template<> const std::string Gal::Namestring  = "gal"; 
00038 template<> const std::string Gal::Symbolstring = "Gal";
00039 template<> const bool Gal::SI = false;
00040 
00041 /* the acceleration of free fall */
00042 
00043 template<> const 
00044   std::string StandardAccelerationOfFreeFall::Namestring 
00045                                      = "standardaccelerationoffreefall";
00046 template<> const 
00047          std::string StandardAccelerationOfFreeFall::Symbolstring = "g";
00048 template<> const bool StandardAccelerationOfFreeFall::SI = false;
00049 
00050 template<> const double Standard<AccelerationComposedUnit>::ratio = 1.0;
00051 template<> const bool Standard<AccelerationComposedUnit>::exact = true;
00052 
00053 template<> const double Standard<Gal>::ratio = 1.0e-2;
00054 template<> const bool Standard<Gal>::exact = true;
00055 
00056 template<> const double 
00057               Standard<StandardAccelerationOfFreeFall>::ratio = 9.80665;
00058 template<> 
00059       const bool Standard<StandardAccelerationOfFreeFall>::exact = true;
00060 
00061   }
00062   
00063 template<> const std::string 
00064                   Name<acceleration::Quantity>::String = "acceleration";
00065 template<>
00066          const std::string Symbol<acceleration::Quantity>::String = "a";
00067 
00068 }
00069 
00070 #endif /* _Acceleration_cc */

Generated on Mon Feb 12 18:48:49 2007 for PhysicalQuantities by doxygen 1.3.6