LongPar.h
00001 #ifndef LONGPAR_H
00002 #define LONGPAR_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 LongPar : public Par {
00036
00037 public:
00038
00039 ~LongPar( ) { }
00040
00041 LongPar( ) : Par( ) { }
00042
00046 LongPar( const LongPar& par ) : Par( par ) { }
00047
00048
00049 LongPar( ParTxt& par ) throw ( ParFileException, Exception );
00050
00051 int pgeti( ) const throw ( ParFileException );
00052
00053 long pgetl( ) const throw ( ParFileException ) {
00054 return atol( parameter[ PARVALUE ].c_str( ) );
00055 }
00056
00057 void set_val( const string& str ) throw ( ParFileException, Exception );
00058
00059 private:
00060
00061 void between_limits( const string& t ) const
00062 throw ( ParFileException, Exception );
00063
00064 void validate( const string& ) const throw ( ParFileException );
00065
00066 };
00067
00068 #endif