VR-Forces 4.0.4 Class Documentation
include/drawerNative/convUtils.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2000 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: convUtils.h,v $ $Revision: 1.8 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef CONVUTILS_H
00013 #define CONVUTILS_H
00014 
00015 #include "drawerNative/drawerNativeDefines.h"
00016 
00019 
00020 class DT_DLL_drawerNative DtUnitConverter
00021 {
00022 
00023 public:
00024 
00026    DtUnitConverter()
00027    {
00028    };
00029 
00031    virtual ~DtUnitConverter()
00032    {
00033    };
00034 
00036    DtUnitConverter(const DtUnitConverter& orig)
00037    {
00038    };
00039 
00041    DtUnitConverter& operator=(const DtUnitConverter& rhs)
00042    {
00043       if (this == &rhs)
00044       {
00045          return *this;
00046       }
00047 
00048       return *this;
00049    };
00050 
00051    virtual bool init()
00052    {
00053       return true;
00054    }
00055 
00057    virtual double metersToLocal(double meters) = 0;
00058 
00060    virtual double localToMeters(double local) = 0;
00061 };
00062 
00064 
00065 class DT_DLL_drawerNative DtMeterConverter : public DtUnitConverter
00066 {
00067 
00068 public:
00069 
00071    DtMeterConverter()
00072    {
00073    };
00074 
00076    virtual ~DtMeterConverter()
00077    {
00078    };
00079 
00081    DtMeterConverter(const DtMeterConverter& orig):
00082       DtUnitConverter(orig)
00083    {
00084    };
00085 
00087    DtMeterConverter& operator=(const DtMeterConverter& rhs)
00088    {
00089       if (this == &rhs)
00090       {
00091          return *this;
00092       }
00093 
00094       DtUnitConverter::operator=(rhs);
00095 
00096       return *this;
00097    };
00098 
00100    virtual double metersToLocal(double meters);
00101 
00103    virtual double localToMeters(double local);
00104 };
00105 
00106 class DT_DLL_drawerNative DtKilometerConverter : public DtUnitConverter
00107 {
00108 
00109 public:
00110 
00112    DtKilometerConverter()
00113    {
00114    };
00115 
00117    virtual ~DtKilometerConverter()
00118    {
00119    };
00120 
00122    DtKilometerConverter(const DtKilometerConverter& orig):
00123       DtUnitConverter(orig)
00124    {
00125    };
00126 
00128    DtKilometerConverter& operator=(const DtKilometerConverter& rhs)
00129    {
00130       if (this == &rhs)
00131       {
00132          return *this;
00133       }
00134 
00135       DtUnitConverter::operator=(rhs);
00136 
00137       return *this;
00138    };
00139 
00141    virtual double metersToLocal(double meters);
00142 
00144    virtual double localToMeters(double local);
00145 };
00146 
00147 class DT_DLL_drawerNative DtFeetConverter : public DtUnitConverter
00148 {
00149 
00150 public:
00151 
00153    DtFeetConverter()
00154    {
00155    };
00156 
00158    virtual ~DtFeetConverter()
00159    {
00160    };
00161 
00163    DtFeetConverter(const DtFeetConverter& orig):
00164       DtUnitConverter(orig)
00165    {
00166    };
00167 
00169    DtFeetConverter& operator=(const DtFeetConverter& rhs)
00170    {
00171       if (this == &rhs)
00172       {
00173          return *this;
00174       }
00175 
00176       DtUnitConverter::operator=(rhs);
00177 
00178       return *this;
00179    };
00180 
00182    virtual double metersToLocal(double meters);
00183 
00185    virtual double localToMeters(double local);
00186 };
00187 
00188 class DT_DLL_drawerNative DtMileConverter : public DtUnitConverter
00189 {
00190 
00191 public:
00192 
00194    DtMileConverter()
00195    {
00196    };
00197 
00199    virtual ~DtMileConverter()
00200    {
00201    };
00202 
00204    DtMileConverter(const DtMileConverter& orig):
00205       DtUnitConverter(orig)
00206    {
00207    };
00208 
00210    DtMileConverter& operator=(const DtMileConverter& rhs)
00211    {
00212       if (this == &rhs)
00213       {
00214          return *this;
00215       }
00216 
00217       DtUnitConverter::operator=(rhs);
00218 
00219       return *this;
00220    };
00221 
00223    virtual double metersToLocal(double meters);
00224 
00226    virtual double localToMeters(double local);
00227 };
00228 
00229 class DT_DLL_drawerNative DtNauticalMileConverter : public DtUnitConverter
00230 {
00231 
00232 public:
00233 
00235    DtNauticalMileConverter()
00236    {
00237    };
00238 
00240    virtual ~DtNauticalMileConverter()
00241    {
00242    };
00243 
00245    DtNauticalMileConverter(const DtNauticalMileConverter& orig):
00246       DtUnitConverter(orig)
00247    {
00248    };
00249 
00251    DtNauticalMileConverter& operator=(const DtNauticalMileConverter& rhs)
00252    {
00253       if (this == &rhs)
00254       {
00255          return *this;
00256       }
00257 
00258       DtUnitConverter::operator=(rhs);
00259 
00260       return *this;
00261    };
00262 
00264    virtual double metersToLocal(double meters);
00265 
00267    virtual double localToMeters(double local);
00268 };
00269 
00270 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)