Main Page | Class Hierarchy | Class List | File List

LuminousIntensity.h

Go to the documentation of this file.
00001 
00007 /* Copyright (C) 2002 - 2006, Bernd Speiser */
00008 
00009 /* This file is part of Quantities.
00010 
00011 PhysicalQuantities is free software; you can redistribute it and/or
00012 modify it under the terms of the GNU General Public License
00013 as published by the Free Software Foundation; either version 2
00014 of the License, or (at your option) any later version.
00015 
00016 PhysicalQuantities is distributed in the hope that it will be useful,
00017 but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 GNU General Public License for more details.
00020   
00021 You should have received a copy of the GNU General Public License
00022 along with this program; if not, write to the Free Software
00023 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00024 02111-1307, USA.
00025 */
00026 
00027 #ifndef _LuminousIntensity_h
00028 #define _LuminousIntensity_h
00029 
00030 #include "Quantity/Variable.h"
00031 #include "Quantity/Constant.h"
00032 #include "Quantity/QuantityCluster.h"
00033 
00034 namespace quantity {
00035   namespace luminousIntensity {
00036 
00037 /* LuminousIntensity dimension */
00038 typedef BSUtilities::Rational<0> LE;
00039 typedef BSUtilities::Rational<0> M; 
00040 typedef BSUtilities::Rational<0> TI;
00041 typedef BSUtilities::Rational<0> E; 
00042 typedef BSUtilities::Rational<0> TE;
00043 typedef BSUtilities::Rational<0> A; 
00044 typedef BSUtilities::Rational<1> LU;
00045 
00046 typedef dimension::Dimension<LE, M, TI, E, TE, A, LU> Dimension;
00047 
00049 class Unit;
00050 
00051 /* declaration of LuminousIntensity units */
00052 class CandelaUnits;
00053 
00054 /* the Candela and prefixed Candelas */
00055 
00056 typedef unit::Prefixable<Unit, CandelaUnits> Candelas;
00057 
00058 typedef unit::Prefixed<Candelas> Candela;
00059 
00061 typedef LOKI_TYPELIST_1(Candelas::Units) Units;
00062 
00063 /* declare some abbreviated time units */
00064 
00065 typedef Candela cd;
00066 
00067 /* LuminousIntensity quantity */
00068 
00069 typedef Quantity<Dimension, Unit, Units, Candela> Quantity;
00070 
00071   }
00072 
00073 typedef Variable<luminousIntensity::Quantity> LuminousIntensity;
00074 typedef Constant<luminousIntensity::Quantity> LuminousIntensityConstant;
00075 
00076 typedef VariableVector<luminousIntensity::Quantity> 
00077                                                 LuminousIntensityVector;
00078 
00079 }
00080 
00081 #endif /* _LuminousIntensity_h */

Generated on Sun Jan 15 14:05:26 2006 for PhysicalQuantities by doxygen 1.3.6