|
static void | make_ini_item_list (const char *fname) |
|
static char * | section_test (char *section) |
|
static char * | strip_spaces (char *string) |
|
static struct Ini_item * | new_item (struct Ini_item *prev, char *section, char *key, char *value) |
|
char * | OptGetStr (const char *section, const char *key, const char *defval) |
| Create new string from selected variable from ini file. More...
|
|
char * | OptGetFileName (const char *section, const char *key, const char *defval) |
|
long int | OptGetInt (const char *section, const char *key, const char *defval) |
|
double | OptGetDbl (const char *section, const char *key, const char *defval) |
|
bool | OptGetBool (const char *section, const char *key, const char *defval) |
|
void | OptionsInit (const char *fname) |
| Load options file. More...
|
|
void | OptGetDblArray (const char *section, const char *key, const char *defval, std::vector< double > &array) |
|
void | OptGetIntArray (const char *section, const char *key, const char *defval, int ArrSize, int *Array) |
|
OPTIONS RUTINES - get program parameters, reading from options/ini file.
Copyright (C) 2007 Technical University of Liberec. All rights reserved.
Please make a following refer to Flow123d on your project site if you use the program for any purpose, especially for academic research: Flow123d, Research Centre: Advanced Remedial Technologies, Technical University of Liberec, Czech Republic
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 021110-1307, USA.
$Id$ $Revision$ $LastChangedBy$ $LastChangedDate$
DESCRIPTION
Functions OptGet* are implemented through OptGetStr - only one interface routine for various implementation the parameter default is always char *, which can be NULL in the case that explicit value is necessary and program should produce an error if corresponding parameter is not given.
Current implementation is based on SimpleINI C++ library.
Definition in file read_ini.cc.