Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/filesystem/inifile.h')
-rw-r--r--src/filesystem/inifile.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/filesystem/inifile.h b/src/filesystem/inifile.h
index fa2d81f..e5423aa 100644
--- a/src/filesystem/inifile.h
+++ b/src/filesystem/inifile.h
@@ -14,14 +14,16 @@
#include "math/color.h"
#include "filesystem/filestream.h"
-namespace filesystem {
+namespace filesystem
+{
/// a class to read .ini files
/** The IniFile class provides functions to read .ini files. A .ini file
* consists of one or more [section] headers followed by one or more key=value
* pairs. Lines starting with # or ; are considered comments
*/
-class IniFile {
+class IniFile
+{
public:
IniFile(const char *ininame = 0);
@@ -97,16 +99,24 @@ public:
void unknown_section() const;
/// return true of the ini file is open for reading
- inline bool is_open() { return inifile_stream.is_open(); }
+ inline bool is_open() {
+ return inifile_stream.is_open();
+ }
/// return true of the ini file is open for reading
- inline bool good() { return inifile_stream.good(); }
+ inline bool good() {
+ return inifile_stream.good();
+ }
/// current name in the virtual filesystem
- inline std::string const & name() const {return inifile_stream.name(); }
+ inline std::string const & name() const {
+ return inifile_stream.name();
+ }
/// current actual filename
- inline std::string const & filename() const { return inifile_stream.filename(); }
+ inline std::string const & filename() const {
+ return inifile_stream.filename();
+ }
/// close the file
void close();