Example for the RDM::TIME_SERIES::restore_aggregate template classe. This example needs a compiled schema, time_series_restore_aggregate.sdl.
This example also uses the RDM::TIME_SERIES::split, RDM::TIME_SERIES::stats, and RDM::DB::insert_row classes. If you are interesed in how to use those classes we suggest that you instead take a look at the time_series_stats.cpp example.
This example code is meant to be called several time to demonstrate how to handle a system crash or other senarios where this code need to be restarted. The RDM::TIME_SERIES::restore_aggregate is able to restore the state of the stat class for aggregation to continue with the left over data from when it was last run. Please see the detailed description of RDM::TIME_SERIES::restore_aggregate for how this works.