BoolPar.h
00001 #ifndef BOOLPAR_H
00002 #define BOOLPAR_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
00036 class BoolPar : public Par {
00037
00038 public:
00039
00040 ~BoolPar( ) { }
00041
00045 BoolPar( ) : Par( ) { }
00046
00050 BoolPar( const BoolPar& par ) : Par( par ) { }
00051
00052
00053 BoolPar( ParTxt& par ) throw ( ParFileException );
00054
00055 bool pgetb( void ) const throw ( ParFileException );
00056
00057 void set_val( const string& str ) throw ( ParFileException, Exception );
00058
00059 private:
00060
00061 virtual void between_limits( const string& str ) const
00062 throw ( ParFileException, Exception );
00063
00064 void validate( const string& ) const throw ( ParFileException );
00065
00066 };
00067
00068 #endif