Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/filesystem/inistream.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/filesystem/inistream.h b/src/filesystem/inistream.h
index 6aba4dc..92e17bc 100644
--- a/src/filesystem/inistream.h
+++ b/src/filesystem/inistream.h
@@ -18,10 +18,9 @@
namespace filesystem
{
-/// a class to read ini streams
/**
- * The IniStream class is able to decode the structure of a windows-like
- * .ini file from a text stream.
+ * @brief a class to read ini streams
+ * The IniStream class is able to decode the structure of a windows-like .ini file from a text stream.
**/
class IniStream
{
@@ -34,22 +33,26 @@ public:
bool getline(std::istream & istream);
/// current section label
- inline std::string section() const {
+ inline const std::string & section() const
+ {
return section_current;
}
/// current key
- inline std::string key() const {
+ inline const std::string & key() const
+ {
return key_current;
}
/// current value
- inline std::string value() const {
+ inline const std::string & value() const
+ {
return value_current;
}
/// current line number
- inline unsigned int line() const {
+ inline unsigned int line() const
+ {
return line_number;
}