UPDATE SUBSCRIPTION LIST. Updates the subscription list service if enough time has passed. Otherwise does nothing
446 ostringstream output;
449 if (serverIt->first ==
"DATA_LOGGER")
451 for (
auto serviceIt=serverIt->second.begin(); serviceIt!=serverIt->second.end(); serviceIt++)
453 output << serverIt->first <<
"/" << serviceIt->first <<
",";
454 if (serviceIt->second.lastReceivedEvent !=
Time::None)
455 output << (timeNow - serviceIt->second.lastReceivedEvent).total_seconds();
int fCurrentSubscriptionUpdateRate
Number of seconds since the last update of the subscribed list.
void setQuality(int quality)
Adds some functionality to boost::posix_time::ptime for our needs.
DimDescribedService * fCurrentSubscription
Service for broadcasting subscription status.
void setData(const void *ptr, size_t sz)
static const Time None
A none-time, this can be used as a simple representation of an invalid time.
SubscriptionsListType fServiceSubscriptions
All the services to which we have subscribed to, sorted by server name.
Time fLastSubscriptionUpdate
The last time in seconds of the day when the service was update.