35 void SignalTargetRPC::registerMeasurement(
const std::string& unique_name,
int value_dimension,
const std::vector<std::string>& value_labels,
40 measurement->header.name = unique_name;
42 measurement->header.value_dimension = value_dimension;
43 measurement->header.zero_order_hold = zero_order_hold;
45 measurement->getValueLabelsRef() = value_labels;
47 sendMeasurement(measurement);
50 void SignalTargetRPC::registerTimeSeries(
const std::string& unique_name,
int value_dimension,
bool zero_order_hold)
54 time_series_signal->header.name = unique_name;
55 time_series_signal->header.time =
Time::now();
56 time_series_signal->header.value_dimension = value_dimension;
57 time_series_signal->header.zero_order_hold = zero_order_hold;
58 sendTimeSeries(time_series_signal);
63 if (!measurement)
return;
65 messages::Signal signal_msg;
66 measurement->toMessage(signal_msg);
67 _signal_writer->Write(signal_msg);
72 if (!time_series)
return;
74 messages::Signal signal_msg;
75 time_series->toMessage(signal_msg);
76 _signal_writer->Write(signal_msg);
81 if (!indexed_values)
return;
82 messages::Signal signal_msg;
83 indexed_values->toMessage(signal_msg);
84 _signal_writer->Write(signal_msg);
89 if (!indexed_values_set)
return;
91 messages::Signal signal_msg;
92 indexed_values_set->toMessage(signal_msg);
93 _signal_writer->Write(signal_msg);
100 messages::Signal signal_msg;
101 matrix->toMessage(signal_msg);
102 _signal_writer->Write(signal_msg);