paramxx  1.0.7
BoolPar.h
1 #ifndef BOOLPAR_H
2 #define BOOLPAR_H
3 
4 // --8<--8<--8<--8<--
5 //
6 // Copyright (C) 2006 Smithsonian Astrophysical Observatory
7 //
8 // This file is part of paramxx
9 //
10 // paramxx is free software; you can redistribute it and/or
11 // modify it under the terms of the GNU General Public License
12 // as published by the Free Software Foundation; either version 2
13 // of the License, or (at your option) any later version.
14 //
15 // paramxx is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with this program; if not, write to the
22 // Free Software Foundation, Inc.
23 // 51 Franklin Street, Fifth Floor
24 // Boston, MA 02110-1301, USA
25 //
26 // -->8-->8-->8-->8--
27 
28 #include "Par.h"
29 
36 class BoolPar : public Par {
37 
38 public:
39 
40  ~BoolPar( ) { }
41 
45  BoolPar( ) : Par( ) { }
46 
50  BoolPar( const BoolPar& par ) : Par( par ) { }
51 
52  // constructor
53  BoolPar( ParTxt& par ) throw ( ParFileException );
54 
55  bool pgetb( void ) const throw ( ParFileException );
56 
57  void set_val( const string& str ) throw ( ParFileException, Exception );
58 
59 private:
60 
61  virtual void between_limits( const string& str ) const
62  throw ( ParFileException, Exception );
63 
64  void validate( const string& ) const throw ( ParFileException );
65 
66 };
67 
68 #endif
Definition: BoolPar.h:36
Definition: Par.h:41
Definition: ParFileException.h:33
BoolPar()
Definition: BoolPar.h:45
bool pgetb(void) const
Definition: BoolPar.cc:59
A class to handle the Param library specific string manipulation.
Definition: ParTxt.h:31
BoolPar(const BoolPar &par)
Definition: BoolPar.h:50