Skip to content
Snippets Groups Projects
Commit 35b72a38 authored by Tim Übelhör's avatar Tim Übelhör
Browse files

Small change for perfect forwarding

parent e85ff868
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@ Status ModeliGrpcServer::Log(ServerContext * context, const::ModeliRpc::LogReque
return Status::OK;
}
void ModeliGrpcServer::ValuesArrived(const std::string instanceName, double timestamp, const std::vector<unsigned int> intVrs, const std::vector<int> intValues, const std::vector<unsigned int> realVrs, const std::vector<double> realValues, const std::vector<unsigned int> boolVrs, const std::vector<int> boolValues, const std::vector<unsigned int> stringVrs, const std::vector<std::string> stringValues)
void ModeliGrpcServer::ValuesArrived(const std::string instanceName, double timestamp, std::vector<unsigned int> intVrs, std::vector<int> intValues, std::vector<unsigned int> realVrs, std::vector<double> realValues, std::vector<unsigned int> boolVrs, std::vector<int> boolValues, std::vector<unsigned int> stringVrs, std::vector<std::string> stringValues)
{
ModeliRpc::NewValuesResponse response;
response.set_instance_name(instanceName);
......
......@@ -171,17 +171,12 @@ namespace Simulation
{
if (auto fmu = entity->GetCoSimFmu().lock())
{
// Gather the values
auto intRes = fmu->GetInteger();
auto realRes = fmu->GetReal();
auto boolRes = fmu->GetBoolean();
auto stringRes = fmu->GetString();
// Send the values
onValuesArrived(entity->GetInstanceName(), current_time,
fmu->GetIntegerVr(), intRes.second,
fmu->GetRealVr(), realRes.second,
fmu->GetBooleanVr(), boolRes.second,
fmu->GetStringVr(), stringRes.second);
fmu->GetIntegerVr(), fmu->GetInteger().second,
fmu->GetRealVr(), fmu->GetReal().second,
fmu->GetBooleanVr(), fmu->GetBoolean().second,
fmu->GetStringVr(), fmu->GetString().second);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment