paramxx
1.0.7
RealPar.h
1
#ifndef REALPAR_H
2
#define REALPAR_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
RealPar
:
public
Par
{
36
37
public
:
38
39
~
RealPar
( ) { }
40
41
RealPar
( ) :
Par
( ) { }
42
44
RealPar
(
const
RealPar
& par ) :
Par
( par ) { }
45
47
RealPar
(
ParTxt
& par )
throw
(
ParFileException
, Exception );
48
49
double
pgetd
(
void
)
const
throw
(
ParFileException
) {
50
return
atof( parameter[
PARVALUE
].c_str( ) );
51
}
52
53
void
set_val(
const
string
& str )
throw
(
ParFileException
, Exception );
54
55
private
:
56
57
void
between_limits(
const
string
& t )
const
58
throw
(
ParFileException
, Exception );
59
60
void
validate(
const
string
& )
const
throw
(
ParFileException
);
61
65
RealPar
& operator = (
const
RealPar
& par );
66
67
};
68
69
#endif
Par
Definition:
Par.h:41
ParFileException
Definition:
ParFileException.h:33
RealPar::RealPar
RealPar(const RealPar &par)
The copy constructor.
Definition:
RealPar.h:44
RealPar::pgetd
double pgetd(void) const
only defined in BoolPar
Definition:
RealPar.h:49
Par::Par
Par(void)
Definition:
Par.h:94
Par::PARVALUE
Definition:
Par.h:72
ParTxt
A class to handle the Param library specific string manipulation.
Definition:
ParTxt.h:31
RealPar
Definition:
RealPar.h:35
pelf1
dj
hd0
axaf
src
paramxx
paramxx
RealPar.h
Generated on Wed Jun 28 2017 10:53:11 for paramxx by
1.8.13