00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _Length_cc
00026 #define _Length_cc
00027
00028 #include "Quantity/Variable.h"
00029
00030 #include "PhysicalQuantities/Length.h"
00031
00032 namespace Quantities {
00033 namespace LengthUnits {
00034
00035
00036
00037
00038 template<> const double Metres::StandardRatio = 1.;
00039 template<> const std::string Metres::Basename = "metre";
00040 template<> const std::string Metres::Basesymbol = "m";
00041 template<> const bool Metres::SI = true;
00042 template<> const bool Metres::Exact = true;
00043
00044
00045
00046 template<> const double Bohr::StandardRatio = 5.29177e-11;
00047 template<> const std::string Bohr::Namestring = "bohr";
00048 template<> const std::string Bohr::Symbolstring = "b";
00049 template<> const bool Bohr::SI = false;
00050 template<> const bool Bohr::Exact = false;
00051
00052
00053
00054 template<> const double Angstrom::StandardRatio = 1.0e-10;
00055 template<> const std::string Angstrom::Namestring = "angstrom";
00056 template<> const std::string Angstrom::Symbolstring = "A0";
00057 template<> const bool Angstrom::SI = false;
00058 template<> const bool Angstrom::Exact = true;
00059
00060
00061
00062 template<> const double Micron::StandardRatio = 1.0e-6;
00063 template<> const std::string Micron::Namestring = "micron";
00064 template<> const std::string Micron::Symbolstring = "mu";
00065 template<> const bool Micron::SI = false;
00066 template<> const bool Micron::Exact = true;
00067
00068
00069
00070 template<> const double MilliMicron::StandardRatio = 1.0e-9;
00071 template<> const std::string MilliMicron::Namestring = "millimicron";
00072 template<> const std::string MilliMicron::Symbolstring = "mmu";
00073 template<> const bool MilliMicron::SI = false;
00074 template<> const bool MilliMicron::Exact = true;
00075
00076
00077
00078 template<> const double X::StandardRatio = 1.002e-13;
00079 template<> const std::string X::Namestring = "xunit";
00080 template<> const std::string X::Symbolstring = "X";
00081 template<> const bool X::SI = false;
00082 template<> const bool X::Exact = false;
00083
00084
00085
00086 template<> const double Fermi::StandardRatio = 1.0e-15;
00087 template<> const std::string Fermi::Namestring = "fermi";
00088 template<> const std::string Fermi::Symbolstring = "f";
00089 template<> const bool Fermi::SI = false;
00090 template<> const bool Fermi::Exact = true;
00091
00092
00093
00094 template<> const double Inch::StandardRatio = 2.54e-2;
00095 template<> const std::string Inch::Namestring = "inch";
00096 template<> const std::string Inch::Symbolstring = "in";
00097 template<> const bool Inch::SI = false;
00098 template<> const bool Inch::Exact = true;
00099
00100
00101
00102 template<> const double Foot::StandardRatio = 0.3048;
00103 template<> const std::string Foot::Namestring = "foot";
00104 template<> const std::string Foot::Symbolstring = "ft";
00105 template<> const bool Foot::SI = false;
00106 template<> const bool Foot::Exact = true;
00107
00108
00109
00110 template<> const double Yard::StandardRatio = 0.9144;
00111 template<> const std::string Yard::Namestring = "yard";
00112 template<> const std::string Yard::Symbolstring = "yd";
00113 template<> const bool Yard::SI = false;
00114 template<> const bool Yard::Exact = true;
00115
00116
00117
00118 template<> const double Mile::StandardRatio = 1609.344;
00119 template<> const std::string Mile::Namestring = "mile";
00120 template<> const std::string Mile::Symbolstring = "mi";
00121 template<> const bool Mile::SI = false;
00122 template<> const bool Mile::Exact = true;
00123
00124
00125
00126 template<> const double NauticalMile::StandardRatio = 1852.;
00127 template<> const std::string NauticalMile::Namestring = "nauticalmile";
00128 template<> const std::string NauticalMile::Symbolstring = "";
00129 template<> const bool NauticalMile::SI = false;
00130 template<> const bool NauticalMile::Exact = true;
00131
00132
00133
00134 template<> const double Astronomical::StandardRatio = 1.49600e11;
00135 template<> const std::string Astronomical::Namestring
00136 = "astronomicalunit";
00137 template<> const std::string Astronomical::Symbolstring = "AU";
00138 template<> const bool Astronomical::SI = false;
00139 template<> const bool Astronomical::Exact = true;
00140
00141
00142
00143 template<> const double Parsec::StandardRatio = 3.08568e16;
00144 template<> const std::string Parsec::Namestring = "parsec";
00145 template<> const std::string Parsec::Symbolstring = "pc";
00146 template<> const bool Parsec::SI = false;
00147 template<> const bool Parsec::Exact = false;
00148
00149
00150
00151 template<> const double LightYear::StandardRatio = 9.460528e15;
00152 template<> const std::string LightYear::Namestring = "lightyear";
00153 template<> const std::string LightYear::Symbolstring = "l.y.";
00154 template<> const bool LightYear::SI = false;
00155 template<> const bool LightYear::Exact = false;
00156
00157
00158
00159 template<> const double LightSecond::StandardRatio = 299792458.;
00160 template<> const std::string LightSecond::Namestring = "lightsecond";
00161 template<> const std::string LightSecond::Symbolstring = "";
00162 template<> const bool LightSecond::SI = false;
00163 template<> const bool LightSecond::Exact = true;
00164
00165 }
00166
00167 template<> const std::string Name<LengthQuantities>::String = "length";
00168 template<> const std::string Symbol<LengthQuantities>::String = "l";
00169
00170 }
00171
00172 #endif