Flow123d  release_3.0.0-1008-gca43bb7
Classes | Functions
read_ini.h File Reference
#include <vector>
#include "system/system.hh"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Read_ini
 
struct  Ini_item
 

Functions

long int OptGetInt (const char *section, const char *key, const char *defval)
 
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)
 
bool OptGetBool (const char *section, const char *key, const char *defval)
 
double OptGetDbl (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)
 

Detailed Description

 * Copyright (C) 2015 Technical University of Liberec. All rights reserved.

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. (http://www.gnu.org/licenses/gpl-3.0.en.html)

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.

Definition in file read_ini.h.

Function Documentation

bool OptGetBool ( const char *  section,
const char *  key,
const char *  defval 
)

Definition at line 325 of file read_ini.cc.

Here is the caller graph for this function:

double OptGetDbl ( const char *  section,
const char *  key,
const char *  defval 
)

Definition at line 306 of file read_ini.cc.

Here is the caller graph for this function:

void OptGetDblArray ( const char *  section,
const char *  key,
const char *  defval,
std::vector< double > &  array 
)

Read value of particular key as list of doubles and store them into array. defval string is used if the key is not found.

Definition at line 378 of file read_ini.cc.

char* OptGetFileName ( const char *  section,
const char *  key,
const char *  defval 
)

Definition at line 278 of file read_ini.cc.

long int OptGetInt ( const char *  section,
const char *  key,
const char *  defval 
)

Definition at line 288 of file read_ini.cc.

Here is the caller graph for this function:

void OptGetIntArray ( const char *  section,
const char *  key,
const char *  defval,
int  Arrsize,
int *  Array 
)

Definition at line 405 of file read_ini.cc.

char* OptGetStr ( const char *  section,
const char *  key,
const char *  defval 
)

Create new string from selected variable from ini file.

Parameters
[in]sectionInifile section
[in]keyInifile key
[in]defvalDefault value, if key is not found in inifile
Returns
Ptr to new string with option value from Inifile or to default value

Definition at line 251 of file read_ini.cc.

Here is the caller graph for this function:

void OptionsInit ( const char *  fname)

Load options file.

Parameters
[in]fnameFile name

Definition at line 347 of file read_ini.cc.