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 "libaktualizr/config.h" 9 #include "utilities/config_utils.h" 17 std::string primary_ip;
18 in_port_t primary_port{9030};
20 void updateFromPropertyTree(
const boost::property_tree::ptree& pt);
21 void writeToStream(std::ostream& out_stream)
const;
25 std::string ecu_serial;
26 std::string ecu_hardware_id;
27 CryptoSource key_source{CryptoSource::kFile};
28 KeyType key_type{KeyType::kRSA2048};
29 bool force_install_completion{
false};
31 void updateFromPropertyTree(
const boost::property_tree::ptree& pt);
32 void writeToStream(std::ostream& out_stream)
const;
43 void postUpdateValues();
44 void writeToStream(std::ostream& sink)
const;
60 void updateFromCommandLine(
const boost::program_options::variables_map& cmd);
61 void updateFromPropertyTree(
const boost::property_tree::ptree& pt)
override;
65 #endif // AKTUALIZR_SECONDARY_CONFIG_H_