@@ -30,20 +30,29 @@ SOFTWARE.
3030#include " OcppConfig.h"
3131
3232#include < openocpp/IniFile.h>
33+ #include < set>
3334
3435/* * @brief Configuration of the simulated charge point */
3536class SimulatedChargePointConfig
3637{
3738 public:
3839 /* * @brief Constructor */
39- SimulatedChargePointConfig (const std::string& working_dir, const std::string& config_file)
40- : m_working_dir(working_dir), m_config(config_file), m_stack_config(m_config), m_ocpp_config(m_config), m_mqtt_config(m_config)
40+ SimulatedChargePointConfig (const std::string& working_dir, const std::string& config_file, std::set<std::string>& diag_files)
41+ : m_working_dir(working_dir),
42+ m_config (config_file),
43+ m_diag_files(diag_files),
44+ m_stack_config(m_config),
45+ m_ocpp_config(m_config),
46+ m_mqtt_config(m_config)
4147 {
4248 }
4349
4450 /* * @brief Working directory */
4551 const std::string& workingDir () const { return m_working_dir; }
4652
53+ /* * @brief files to put diagnostic zip */
54+ const std::set<std::string>& diagFiles () const { return m_diag_files; }
55+
4756 /* * @brief Stack internal configuration */
4857 ocpp::config::IChargePointConfig& stackConfig () { return m_stack_config; }
4958
@@ -67,6 +76,8 @@ class SimulatedChargePointConfig
6776 std::string m_working_dir;
6877 /* * @brief Configuration file */
6978 ocpp::helpers::IniFile m_config;
79+ /* * @brief files to put diagnostic zip */
80+ std::set<std::string> m_diag_files;
7081
7182 /* * @brief Stack internal configuration */
7283 ChargePointConfig m_stack_config;
0 commit comments