Example for the RDM::TIME_SERIES::custom template class. This example needs a compiled schema, time_series_custom.sdl.
This example also uses the 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 look at the time_series_stats.cpp example.
Here we use a scema with a table that have some of the required columns for a stat result set as produced by the RDM::TIME_SERIES::stats class stripped away. We therefor explicitly declate the needed type for the RDM::TIME_SERIES::stats class and use an extension of the RDM::TIME_SERIES::custom class that can do the convert. This convert class has only one method. We have crafted it as a template methode making it slightly more general. However, in our case here, it would have been sufficient to use a normal method.