summaryrefslogtreecommitdiffstats
path: root/CAN-binder/low-can-binding/utils/config-parser.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-18 19:49:43 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-19 14:48:23 +0200
commit465001c7ef7479e7cfb7af7af180ed6419a5ab49 (patch)
treec0a842d5b9ab9c0c75972bc12b2903de5f46e311 /CAN-binder/low-can-binding/utils/config-parser.cpp
parentdd00a5553e42adb8a14470602e4f25c449287f7d (diff)
Finish config parser retrieving device mapping.
Change-Id: Ia43f9c0edf09ff9a1c009f198bdad10a6b44b249 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/utils/config-parser.cpp')
-rw-r--r--CAN-binder/low-can-binding/utils/config-parser.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/CAN-binder/low-can-binding/utils/config-parser.cpp b/CAN-binder/low-can-binding/utils/config-parser.cpp
index 6f699169..3f338121 100644
--- a/CAN-binder/low-can-binding/utils/config-parser.cpp
+++ b/CAN-binder/low-can-binding/utils/config-parser.cpp
@@ -23,11 +23,16 @@ namespace utils
{
/// @brief constructor using path to file
config_parser_t::config_parser_t(std::string conf_file)
- : config_content_{}
+ : filepath_{conf_file}, config_content_{}
{
config_content_.read_file(conf_file);
}
+ const std::string& config_parser_t::filepath() const
+ {
+ return filepath_;
+ }
+
/// @brief read the conf_file_ and parse it into an INIReader object
/// to search into later.
bool config_parser_t::check_conf()