| 37 | } |
| 38 | |
| 39 | void RelayStatisticsReporter::configure_stats_period(const OpenDDS::DCPS::TimeDuration& log, |
| 40 | const OpenDDS::DCPS::TimeDuration& publish) const |
| 41 | { |
| 42 | if (log || publish) { |
| 43 | TheServiceParticipant->statistics_period(log && publish ? std::min(log, publish) : (log ? log : publish)); |
| 44 | TheServiceParticipant->statistics_topic()->connect(internal_reader_); |
| 45 | } else { |
| 46 | TheServiceParticipant->statistics_period(OpenDDS::DCPS::TimeDuration{}); |
| 47 | TheServiceParticipant->statistics_topic()->disconnect(internal_reader_); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | void RelayStatisticsReporter::on_data_available(InternalDataReader_rch reader) |
| 52 | { |
nothing calls this directly
no test coverage detected