Toast++
1.0.2 (r.539)
Forward and inverse modelling in optical tomography
Main Page
Related Pages
Modules
Classes
Files
File List
libstoast
pparse.h
1
// =========================================================================
2
// ParamParser: file parser for parameter files
3
// ============================================================================
4
5
#ifndef __PPARSE_H
6
#define __PPARSE_H
7
8
#include <fstream>
9
#include <iostream>
10
11
class
STOASTLIB
ParamParser
{
12
public
:
13
ParamParser
();
14
bool
Open (
const
char
*fname);
15
void
LogOpen (
const
char
*fname);
16
void
Lineout (
const
char
*str);
17
bool
GetString (
const
char
*cat,
char
*str);
18
void
PutString (
const
char
*cat,
const
char
*str);
19
bool
GetReal (
const
char
*cat,
double
&val);
20
void
PutReal (
const
char
*cat,
double
val);
21
bool
GetInt (
const
char
*cat,
int
&val);
22
void
PutInt (
const
char
*cat,
int
val);
23
bool
GetBool (
const
char
*cat,
bool
&val);
24
void
PutBool (
const
char
*cat,
bool
val);
25
26
private
:
27
char
*trim_string (
char
*cbuf);
28
bool
bfile;
29
std::ifstream prmf;
30
};
31
32
#endif // !__PPARSE_H
ParamParser
Definition:
pparse.h:11
Generated on Tue Sep 2 2014 17:14:26 for Toast++ by
1.8.6