projects
/
manu
/
suphp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Import upstream 0.7.1
[manu/suphp.git]
/
src
/
IniFile.hpp
diff --git
a/src/IniFile.hpp
b/src/IniFile.hpp
index
565a157
..
d1e49d5
100644
(file)
--- a/
src/IniFile.hpp
+++ b/
src/IniFile.hpp
@@
-1,5
+1,5
@@
/*
/*
- suPHP - (c)2002-200
5
Sebastian Marsching <sebastian@marsching.com>
+ suPHP - (c)2002-200
8
Sebastian Marsching <sebastian@marsching.com>
This file is part of suPHP.
This file is part of suPHP.
@@
-41,33
+41,35
@@
namespace suPHP {
*/
class IniFile {
private:
*/
class IniFile {
private:
- std::map<std::string, IniSection> sections;
+ std::map<std::string, IniSection> sections;
+
+ std::string parseValue(const std::string& value) const throw (ParsingException);
public:
public:
- /**
- * Reads values from INI file
- */
-
void parse(File
file) throw (IOException, ParsingException);
+
/**
+
* Reads values from INI file
+
*/
+
void parse(const File&
file) throw (IOException, ParsingException);
- /**
- * Returns section
- */
-
IniSection& getSection(std::string name)
throw (KeyNotFoundException);
-
- /**
- * Index operator
- */
-
IniSection& operator[](std::string name)
throw (KeyNotFoundException);
+
/**
+
* Returns section
+
*/
+
const IniSection& getSection(const std::string& name) const
throw (KeyNotFoundException);
+
+
/**
+
* Index operator
+
*/
+
const IniSection& operator[](const std::string& name) const
throw (KeyNotFoundException);
- /**
- * Returns vector containing names of all sections
- */
-
std::vector<
std::string> getSections();
+
/**
+
* Returns vector containing names of all sections
+
*/
+
const std::vector<const
std::string> getSections();
- /**
- * Checks wheter a section is existing
- */
-
bool hasSection(std::string name)
;
+
/**
+
* Checks wheter a section is existing
+
*/
+
bool hasSection(const std::string& name) const
;
};
};
};
};