Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

VoltageScanRate.h

Go to the documentation of this file.
00001 
00005 /* Copyright (C) 2002-2004, Bernd Speiser */
00006 
00007 /* This file is part of Quantities.
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 _VoltageScanRate_h
00026 #define _VoltageScanRate_h
00027 
00028 #include "Quantity/Variable.h"
00029 #include "Quantity/Constant.h"
00030 
00031 #include "PhysicalQuantities/ElectricPotential.h"
00032 #include "PhysicalQuantities/Time.h"
00033 
00034 namespace Quantities {
00035 
00036 /* VoltageScanRate dimension */
00037 typedef BSUtilities::Rational<2> VoltageScanRate_LE;
00038 typedef BSUtilities::Rational<1> VoltageScanRate_M; 
00039 typedef BSUtilities::Rational<-4> VoltageScanRate_TI;
00040 typedef BSUtilities::Rational<-1> VoltageScanRate_E;
00041 typedef BSUtilities::Rational<0> VoltageScanRate_TE;
00042 typedef BSUtilities::Rational<0> VoltageScanRate_A;
00043 typedef BSUtilities::Rational<0> VoltageScanRate_LU;
00044 
00045 class VoltageScanRateGroup
00046   {
00047     public:
00048       typedef TYPELIST_7(VoltageScanRate_LE, VoltageScanRate_M, 
00049                          VoltageScanRate_TI, VoltageScanRate_E,
00050                          VoltageScanRate_TE, VoltageScanRate_A, 
00051                                               VoltageScanRate_LU) DimTL;
00052   };
00053 
00055   namespace VoltageScanRateUnits {
00056 
00057 /* declaration of VoltageScanRate unit base class */
00058 typedef Units::Unit<VoltageScanRateGroup> VoltageScanRateUnit;
00059 
00060 /* declaration of VoltageScanRate units of type VoltPerSecondUnit */
00061 
00062 typedef TYPELIST_4(ElectricPotentialUnits::Volt, 
00063   ElectricPotentialUnits::MilliVolt, ElectricPotentialUnits::KiloVolt, 
00064                 ElectricPotentialUnits::MegaVolt) ElectricPotentialList;
00065 
00066 typedef 
00067   Units::CompoundElement<VoltageScanRateGroup, ElectricPotentialList, 
00068                     BSUtilities::Rational<1> > ElectricPotentialElement;
00069 
00070 typedef TYPELIST_3(TimeUnits::Second, TimeUnits::MilliSecond, 
00071                                        TimeUnits::MicroSecond) TimeList;
00072 
00073 typedef 
00074   Units::CompoundElement<VoltageScanRateGroup, TimeList, 
00075                                 BSUtilities::Rational<-1> > TimeElement;
00076 
00077 typedef TYPELIST_2(ElectricPotentialElement, TimeElement) 
00078                                            VoltageScanRateCompoundList;
00079 typedef 
00080   Units::Compound<VoltageScanRateGroup, VoltageScanRateCompoundList> 
00081                                           VoltageScanRateCompoundUnits;
00082 
00083 typedef Units::Composed<VoltageScanRateCompoundUnits,
00084   TYPELIST_2(ElectricPotentialUnits::Volt,TimeUnits::Second)> 
00085                                                           VoltPerSecond;
00086 typedef Units::Composed<VoltageScanRateCompoundUnits,
00087   TYPELIST_2(ElectricPotentialUnits::MilliVolt,TimeUnits::Second)> 
00088                                                      MilliVoltPerSecond;
00089 typedef Units::Composed<VoltageScanRateCompoundUnits,
00090   TYPELIST_2(ElectricPotentialUnits::KiloVolt,TimeUnits::Second)> 
00091                                                      KiloVoltPerSecond;
00092 typedef Units::Composed<VoltageScanRateCompoundUnits,
00093   TYPELIST_2(ElectricPotentialUnits::MegaVolt,TimeUnits::Second)> 
00094                                                      MegaVoltPerSecond;
00095 
00097 typedef TYPELIST_4(VoltPerSecond, MilliVoltPerSecond,
00098              KiloVoltPerSecond, MegaVoltPerSecond) VoltageScanRateUnits;
00099 
00100 
00101   }
00102 
00103 /* declaration of VoltageScanRate dimension */
00104 
00105 typedef 
00106    Dimensions::Dimension<VoltageScanRateGroup> VoltageScanRateDimension;
00107 
00108 /* VoltageScanRate quantity */
00109 
00110 typedef Quantity<VoltageScanRateGroup,
00111   VoltageScanRateUnits::VoltageScanRateUnits,
00112          VoltageScanRateUnits::VoltPerSecond> VoltageScanRateQuantities;
00113 
00114 typedef Variable<VoltageScanRateQuantities> VoltageScanRate;
00115 typedef Constant<VoltageScanRateQuantities> VoltageScanRateConstant;
00116 
00117 typedef VariableVector<VoltageScanRateQuantities> VoltageScanRateVector;
00118 
00119 }
00120 
00121 #endif /* _VoltageScanRate_h */

Generated on Sun Jan 15 13:58:03 2006 for PhysicalQuantities by doxygen 1.3.6