1 #ifndef AKTUALIZR_SECONDARY_CONFIG_H_
2 #define AKTUALIZR_SECONDARY_CONFIG_H_
4 #include <boost/filesystem.hpp>
5 #include <boost/program_options.hpp>
6 #include <boost/property_tree/ini_parser.hpp>
8 #include "bootloader/bootloader_config.h"
9 #include "crypto/keymanager_config.h"
10 #include "crypto/p11_config.h"
11 #include "logging/logging_config.h"
12 #include "package_manager/packagemanagerconfig.h"
13 #include "storage/storage_config.h"
14 #include "utilities/config_utils.h"
22 std::string primary_ip;
23 in_port_t primary_port{9030};
25 void updateFromPropertyTree(
const boost::property_tree::ptree& pt);
26 void writeToStream(std::ostream& out_stream)
const;
30 std::string ecu_serial;
31 std::string ecu_hardware_id;
32 CryptoSource key_source{CryptoSource::kFile};
33 KeyType key_type{KeyType::kRSA2048};
34 bool force_install_completion{
false};
36 void updateFromPropertyTree(
const boost::property_tree::ptree& pt);
37 void writeToStream(std::ostream& out_stream)
const;
48 void postUpdateValues();
49 void writeToStream(std::ostream& sink)
const;
65 void updateFromCommandLine(
const boost::program_options::variables_map& cmd);
66 void updateFromPropertyTree(
const boost::property_tree::ptree& pt)
override;
70 #endif // AKTUALIZR_SECONDARY_CONFIG_H_