Streamer fluid modeling - An overview of ARCoS  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
configuration.h
Go to the documentation of this file.
1 
4 /* ----------------------------------------------------------------------------
5  libconfig - A library for processing structured configuration files
6  Copyright (C) 2005-2010 Mark A Lindner
7 
8  This file is part of libconfig.
9 
10  This library is free software; you can redistribute it and/or
11  modify it under the terms of the GNU Lesser General Public License
12  as published by the Free Software Foundation; either version 2.1 of
13  the License, or (at your option) any later version.
14 
15  This library is distributed in the hope that it will be useful, but
16  WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Library General Public
21  License along with this library; if not, see
22  <http://www.gnu.org/licenses/>.
23  ----------------------------------------------------------------------------
24 */
25 
26 #include <stdio.h>
27 #include <stdlib.h>
28 #include <string.h>
29 #include <stdbool.h>
30 #include <libconfig.h>
31 
32 #ifndef _CSTREAM_H
33 # include "cstream.h"
34 #endif
35 
36 #ifndef _PARAMETERS_H_
37 # include "parameters.h"
38 #endif
39 
40 #ifndef _SPECIES_H
41 # include "species.h"
42 #endif
43 
44 #ifndef _REACTION_H
45 # include "reaction.h"
46 #endif
47 
48 #define COMPARE_LIMIT 100
49 #define NO_PARAMETERS 100
50 
51 typedef struct array_name {
52  const char *name;
53 } ARRAY_NAME ;
54 
56 
57 bool
58 change_cfg_integer(const char* name,const char *type,const char *comment,
59  const char *sstring, int *par,int value,int count,
60  bool *change, config_setting_t *setting_default,int i);
61 bool
62 change_cfg_double(const char* name,const char *type,const char *comment,
63  const char *sstring,double *par,double value,int count,
64  bool *change, config_setting_t *setting_default,int i);
65 //bool
66 //change_cfg_bool(const char* name,const char *type,const char *comment,
67 // const char *sstring, bool *par,bool value,int count,
68 // bool *change, config_setting_t *setting_default,int i);
69 bool
70 change_cfg_string(const char *name,const char *type,const char *comment,
71  const char *sstring,char** par,char* value,int count,
72  bool *change, config_setting_t *setting_default,int i);
73 void
74 change_cfg_parameters (const char *name,const char *type,const char *comment,
75  int ii,int ivalue, double dvalue, bool bbool,
76  const char* astring, config_setting_t *setting,
77  int count,bool *change);
78 bool
80  int ii,int count,bool *change);
81 
82 bool
83 read_specie(config_setting_t *setting,int ii,species_t *temp_s);
84 
85 bool
86 read_seed(config_setting_t *setting,int ii,seed_t *temp_se);
87 
88 bool
89 read_reaction(config_setting_t *setting,int ii,reaction_t *temp_r);
90