paramxx  1.0.7
CommentPar.h
1 #ifndef COMMENTPAR_H
2 #define COMMENTPAR_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 
35 class CommentPar : public Par {
36 
37 public:
38 
39  ~CommentPar( ) { }
40 
41  CommentPar( ) : Par( ) { }
42 
46  CommentPar( const CommentPar& par ) : Par( par ) { }
47 
48  // constructor
49  CommentPar( ParTxt& par ) throw ( ParFileException );
50 
51  // int check_value( const char* str ) const {
52  // return EXIT_SUCCESS;
53  // }
54 
58  void plist( ostream& os ) const { print( os ); os << '\n'; }
59 
60  void set_val( const string& str ) throw ( ParFileException, Exception );
61 
62 };
63 
64 #endif
virtual void print(ostream &os) const
only defined in StringPar
Definition: Par.cc:189
Definition: Par.h:41
Definition: ParFileException.h:33
void plist(ostream &os) const
Definition: CommentPar.h:58
Definition: CommentPar.h:35
Par(void)
Definition: Par.h:94
A class to handle the Param library specific string manipulation.
Definition: ParTxt.h:31
CommentPar(const CommentPar &par)
Definition: CommentPar.h:46