change the configuration to handle the new ZMQ-REQ-REP-protocol and the RestAPI-Update protocol
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user