00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "stdgeorges.h"
00027 #include "nel/georges/type_unit.h"
00028
00029 namespace NLGEORGES
00030 {
00031
00033
00035
00036 CTypeUnit::CTypeUnit( const CStringEx _sxll, const CStringEx _sxhl, const CStringEx _sxdv, const CStringEx _sxf )
00037 {
00038 sxlowlimit = _sxll;
00039 sxhighlimit = _sxhl;
00040 sxdefaultvalue = _sxdv;
00041 sxformula = _sxf;
00042 }
00043
00044 CTypeUnit::~CTypeUnit()
00045 {
00046 }
00047
00048 CStringEx CTypeUnit::GetFormula() const
00049 {
00050 return sxformula;
00051 }
00052
00053 CStringEx CTypeUnit::GetDefaultValue() const
00054 {
00055 return sxdefaultvalue;
00056 }
00057
00058 CStringEx CTypeUnit::GetLowLimit() const
00059 {
00060 return sxlowlimit;
00061 }
00062
00063 CStringEx CTypeUnit::GetHighLimit() const
00064 {
00065 return sxhighlimit;
00066 }
00067
00068 CStringEx CTypeUnit::Format( const CStringEx _sxvalue ) const
00069 {
00070 return( _sxvalue );
00071 }
00072
00073 CStringEx CTypeUnit::CalculateResult( const CStringEx _sxbasevalue, const CStringEx _sxvalue ) const
00074 {
00075 return( _sxbasevalue );
00076 }
00077
00078 void CTypeUnit::SetDefaultValue( const CStringEx _sxdv )
00079 {
00080 sxdefaultvalue = _sxdv;
00081 }
00082
00083 void CTypeUnit::SetLowLimit( const CStringEx _sxll )
00084 {
00085 sxlowlimit = _sxll;
00086 }
00087
00088 void CTypeUnit::SetHighLimit( const CStringEx _sxhl )
00089 {
00090 sxhighlimit = _sxhl;
00091 }
00092
00093 }