00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef NLGEORGES_TYPE_UNIT_H
00027 #define NLGEORGES_TYPE_UNIT_H
00028
00029 #include "nel/georges/string_ex.h"
00030
00031 namespace NLGEORGES
00032 {
00033
00034 class CTypeUnit
00035 {
00036 protected:
00037 CStringEx sxformula;
00038 CStringEx sxhighlimit;
00039 CStringEx sxlowlimit;
00040 CStringEx sxdefaultvalue;
00041
00042 public:
00043 CTypeUnit( const CStringEx _sxll, const CStringEx _sxhl, const CStringEx _sxdv, const CStringEx _sxf );
00044 virtual ~CTypeUnit();
00045
00046 CStringEx GetFormula() const;
00047 CStringEx GetDefaultValue() const;
00048 CStringEx GetLowLimit() const;
00049 CStringEx GetHighLimit() const;
00050 virtual void SetDefaultValue( const CStringEx _sxdv );
00051 virtual void SetLowLimit( const CStringEx _sxll );
00052 virtual void SetHighLimit( const CStringEx _sxhl );
00053 virtual CStringEx Format( const CStringEx _sxvalue ) const;
00054 virtual CStringEx CalculateResult( const CStringEx _sxbasevalue, const CStringEx _sxvalue ) const;
00055 };
00056
00057 }
00058
00059 #endif // NLGEORGES_TYPE_UNIT_H