Freeciv21
Develop your civilization from humble roots to a global empire
registry.h
Go to the documentation of this file.
1 /**************************************************************************
2  Copyright (c) 1996-2020 Freeciv21 and Freeciv contributors. This file is
3  __ __ part of Freeciv21. Freeciv21 is free software: you can
4 / \\..// \ redistribute it and/or modify it under the terms of the GNU
5  ( oo ) General Public License as published by the Free Software
6  \__/ Foundation, either version 3 of the License, or (at your
7  option) any later version. You should have received
8  a copy of the GNU General Public License along with Freeciv21. If not,
9  see https://www.gnu.org/licenses/.
10 **************************************************************************/
11 #pragma once
12 
13 class QString;
14 
17 
19 void secfile_destroy(struct section_file *secfile);
20 struct section_file *secfile_load(const QString &filename,
21  bool allow_duplicates);
22 
23 void secfile_allow_digital_boolean(struct section_file *secfile,
25 
26 const char *secfile_error();
27 const char *section_name(const struct section *psection);
void registry_module_close()
void registry_module_init()
struct section_file * secfile_load(const QString &filename, bool allow_duplicates)
Create a section file from a file.
Definition: registry.cpp:21
const char * secfile_error()
Returns the last error which occurred in a string.
struct section_file * secfile_new(bool allow_duplicates)
Create a new empty section file.
void secfile_allow_digital_boolean(struct section_file *secfile, bool allow_digital_boolean)
Set if we could consider values 0 and 1 as boolean.
const char * section_name(const struct section *psection)
Returns the section name.
void secfile_destroy(struct section_file *secfile)
Free a section file.
bool allow_digital_boolean
Definition: section_file.h:46
bool allow_duplicates
Definition: section_file.h:45