change the configuration to handle the new ZMQ-REQ-REP-protocol and the RestAPI-Update protocol

This commit is contained in:
Sven Czarnian
2021-11-21 08:53:58 +01:00
parent 0acb45dd27
commit b309e86ec6
4 changed files with 27 additions and 10 deletions

View File

@@ -75,11 +75,14 @@ bool CommunicationFileFormat::parse(const std::string& filename, Communication&
if ("Address" == gsl::at(entry, 0)) {
config.address = gsl::at(entry, 1);
}
else if ("PortReporter" == gsl::at(entry, 0)) {
config.portReporter = static_cast<std::uint16_t>(std::atoi(gsl::at(entry, 1).c_str()));
else if ("HttpsProtocol" == gsl::at(entry, 0)) {
config.httpsProtocol = "0" != gsl::at(entry, 1);
}
else if ("PortNotification" == gsl::at(entry, 0)) {
config.portNotification = static_cast<std::uint16_t>(std::atoi(gsl::at(entry, 1).c_str()));
else if ("PortBackend" == gsl::at(entry, 0)) {
config.portBackend = static_cast<std::uint16_t>(std::atoi(gsl::at(entry, 1).c_str()));
}
else if ("PortRestAPI" == gsl::at(entry, 0)) {
config.portRestAPI = static_cast<std::uint16_t>(std::atoi(gsl::at(entry, 1).c_str()));
}
else {
this->m_errorLine = lineOffset;