diff --git a/modules/OCPPConfiguration/OCPPConfiguration.cpp b/modules/OCPPConfiguration/OCPPConfiguration.cpp index 0abbacf78c..6fc7730a20 100644 --- a/modules/OCPPConfiguration/OCPPConfiguration.cpp +++ b/modules/OCPPConfiguration/OCPPConfiguration.cpp @@ -19,13 +19,13 @@ void OCPPConfiguration::ready() { const auto mapping_file_path = std::filesystem::path{config.mapping_file_path}; event_handler = std::make_unique(mapping_file_path); - r_ocpp_module->call_monitor_variables(parseConfigMonitorVariables()); + r_ocpp_module->call_monitor_variables(parse_config_monitor_variables()); r_ocpp_module->subscribe_event_data( - [&](const auto& event_data) { event_handler->handleEvent(event_data, config.user_config_path); }); + [&](const auto& event_data) { event_handler->handle_event(event_data, config.user_config_path); }); } -std::vector OCPPConfiguration::parseConfigMonitorVariables() { +std::vector OCPPConfiguration::parse_config_monitor_variables() { const auto& monitor_variables_string = config.monitor_variables; if (monitor_variables_string.empty()) { diff --git a/modules/OCPPConfiguration/OCPPConfiguration.hpp b/modules/OCPPConfiguration/OCPPConfiguration.hpp index c58ad66f50..4144f35dcd 100644 --- a/modules/OCPPConfiguration/OCPPConfiguration.hpp +++ b/modules/OCPPConfiguration/OCPPConfiguration.hpp @@ -56,7 +56,7 @@ class OCPPConfiguration : public Everest::ModuleBase { // ev@211cfdbe-f69a-4cd6-a4ec-f8aaa3d1b6c8:v1 // insert your private definitions here - std::vector parseConfigMonitorVariables(); + std::vector parse_config_monitor_variables(); std::unique_ptr event_handler; // ev@211cfdbe-f69a-4cd6-a4ec-f8aaa3d1b6c8:v1 diff --git a/modules/OCPPConfiguration/main/event_handler.cpp b/modules/OCPPConfiguration/main/event_handler.cpp index 4889f80351..1fe8f8b290 100644 --- a/modules/OCPPConfiguration/main/event_handler.cpp +++ b/modules/OCPPConfiguration/main/event_handler.cpp @@ -11,7 +11,7 @@ EventHandler::EventHandler(const std::filesystem::path& config_mapping_path) : config_mapping(MappingReader::read_mapping(config_mapping_path)) { } -void EventHandler::handleEvent(const types::ocpp::EventData& event_data, const std::string& user_config_path_string) { +void EventHandler::handle_event(const types::ocpp::EventData& event_data, const std::string& user_config_path_string) { const auto& everest_module_mapping_opt = find_mapping_by_component_variable_or_log_error(event_data.component_variable); diff --git a/modules/OCPPConfiguration/main/event_handler.hpp b/modules/OCPPConfiguration/main/event_handler.hpp index 1372535edd..b84362ec66 100644 --- a/modules/OCPPConfiguration/main/event_handler.hpp +++ b/modules/OCPPConfiguration/main/event_handler.hpp @@ -11,7 +11,7 @@ namespace module { class EventHandler { public: EventHandler(const std::filesystem::path& config_mapping_path); - void handleEvent(const types::ocpp::EventData& event_data, const std::string& user_config_path_string); + void handle_event(const types::ocpp::EventData& event_data, const std::string& user_config_path_string); private: const std::optional