summaryrefslogtreecommitdiff
path: root/include/CommonAPI/IniFileReader.hpp
diff options
context:
space:
mode:
authorDirk Huss <dirk_huss@mentor.com>2015-11-25 14:38:28 +0100
committerDirk Huss <dirk_huss@mentor.com>2015-11-25 14:38:28 +0100
commitb6f81b22fcf8d9cf8ee9248408b7d2a72fbff1d9 (patch)
tree8b0b1438ccaa9450ca4b21221eb9cd74f14b10f5 /include/CommonAPI/IniFileReader.hpp
parent3d2fb21d0e93b6b595610285e910ac80c099a174 (diff)
downloadgenivi-common-api-runtime-b6f81b22fcf8d9cf8ee9248408b7d2a72fbff1d9.tar.gz
CommonAPI 3.1.4
Diffstat (limited to 'include/CommonAPI/IniFileReader.hpp')
-rw-r--r--include/CommonAPI/IniFileReader.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/CommonAPI/IniFileReader.hpp b/include/CommonAPI/IniFileReader.hpp
index 13b64c3..a04e5b3 100644
--- a/include/CommonAPI/IniFileReader.hpp
+++ b/include/CommonAPI/IniFileReader.hpp
@@ -16,23 +16,23 @@ namespace CommonAPI {
class IniFileReader {
public:
- class Section {
- public:
- COMMONAPI_EXPORT const std::map<std::string, std::string> &getMappings() const;
- COMMONAPI_EXPORT std::string getValue(const std::string &_key) const;
- private:
- std::map<std::string, std::string> mappings_;
+ class Section {
+ public:
+ COMMONAPI_EXPORT const std::map<std::string, std::string> &getMappings() const;
+ COMMONAPI_EXPORT std::string getValue(const std::string &_key) const;
+ private:
+ std::map<std::string, std::string> mappings_;
- friend class IniFileReader;
- };
+ friend class IniFileReader;
+ };
- COMMONAPI_EXPORT bool load(const std::string &_path);
+ COMMONAPI_EXPORT bool load(const std::string &_path);
- COMMONAPI_EXPORT const std::map<std::string, std::shared_ptr<Section>> &getSections() const;
- COMMONAPI_EXPORT std::shared_ptr<Section> getSection(const std::string &_name) const;
+ COMMONAPI_EXPORT const std::map<std::string, std::shared_ptr<Section>> &getSections() const;
+ COMMONAPI_EXPORT std::shared_ptr<Section> getSection(const std::string &_name) const;
private:
- std::map<std::string, std::shared_ptr<Section>> sections_;
+ std::map<std::string, std::shared_ptr<Section>> sections_;
};
} // namespace CommonAPI