X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=CAN-binder%2Flow-can-binding%2Futils%2Fconfig-parser.hpp;h=3115e9bd953fef2dfbfa285909304562b6b167e3;hb=7747851ca010a3dfe9ffee808376dd5a7af68b91;hp=28a43419666598609f5b442c486b7e9c1f6ee703;hpb=f44a5b1549bc4c8a84d0dedf4a8b1e4220a34f42;p=apps%2Flow-level-can-service.git diff --git a/CAN-binder/low-can-binding/utils/config-parser.hpp b/CAN-binder/low-can-binding/utils/config-parser.hpp index 28a4341..3115e9b 100644 --- a/CAN-binder/low-can-binding/utils/config-parser.hpp +++ b/CAN-binder/low-can-binding/utils/config-parser.hpp @@ -19,6 +19,7 @@ #include #include +#include #include "ini-config.hpp" namespace utils @@ -28,14 +29,16 @@ namespace utils class config_parser_t { private: + const std::string filepath_; /*!< filepath_ - Path to the config file*/ ini_config config_content_; /*!< config_content_ - Parsed content of INI file.*/ public: config_parser_t(config_parser_t&&) = default; config_parser_t(const config_parser_t&) = default; - config_parser_t(std::string conf_file); + explicit config_parser_t(std::string conf_file); + const std::string& filepath() const; bool check_conf(); - const std::vector get_devices_name(); + const std::vector > get_devices_name(); }; }