RealPar.h
00001 #ifndef REALPAR_H
00002 #define REALPAR_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #include "Par.h"
00029
00035 class RealPar : public Par {
00036
00037 public:
00038
00039 ~RealPar( ) { }
00040
00041 RealPar( ) : Par( ) { }
00042
00044 RealPar( const RealPar& par ) : Par( par ) { }
00045
00047 RealPar( ParTxt& par ) throw ( ParFileException, Exception );
00048
00049 double pgetd( void ) const throw ( ParFileException ) {
00050 return atof( parameter[ PARVALUE ].c_str( ) );
00051 }
00052
00053 void set_val( const string& str ) throw ( ParFileException, Exception );
00054
00055 private:
00056
00057 void between_limits( const string& t ) const
00058 throw ( ParFileException, Exception );
00059
00060 void validate( const string& ) const throw ( ParFileException );
00061
00065 RealPar& operator = ( const RealPar& par );
00066
00067 };
00068
00069 #endif