X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Fdata.h;h=d6234fd780691e645465a3e916de393f85f333bc;hb=0654fb285c91da103314610cd4f27295e3da38f3;hp=a64d635400a31dff1b73ab1b04d2bca1cf79914d;hpb=54d8526bce34af6b0d3a08c84e9d0bdfa6963224;p=matches%2FMCTX3420.git diff --git a/server/data.h b/server/data.h index a64d635..d6234fd 100644 --- a/server/data.h +++ b/server/data.h @@ -1,6 +1,6 @@ /** - * @file datapoint.h - * @purpose Declaration of data handling functions; saving, loading, displaying, selecting. + * @file data.h + * @brief Declaration of data handling functions; saving, loading, displaying, selecting. */ #ifndef _DATAPOINT_H @@ -50,4 +50,10 @@ extern void Data_PrintByIndexes(DataFile * df, int start_index, int end_index, D extern void Data_PrintByTimes(DataFile * df, double start_time, double end_time, DataFormat format); // Print data between time values extern int Data_FindByTime(DataFile * df, double time_stamp, DataPoint * closest); // Find index of DataPoint with the closest timestamp to that given +extern void Data_Handler(DataFile * df, FCGIValue * start, FCGIValue * end, DataFormat format, double current_time); // Helper; given FCGI params print data +extern DataFormat Data_GetFormat(FCGIValue * fmt); // Helper; convert human readable format string to DataFormat + + +extern double Data_Callibrate(double value, double map[], int map_size); + #endif //_DATAPOINT_H