21 #ifndef GV_DATABASE__H
22 #define GV_DATABASE__H
43 virtual void add( time_t t ,
unsigned int n ,
unsigned int dx ,
unsigned int dy ,
unsigned int squelch ,
unsigned int apathy ) = 0 ;
47 virtual std::string
graph( std::string & , time_t start_time , time_t end_time ) = 0 ;
An abstract interface for a timeseries database that holds video analysis statistics.
virtual void add(time_t t, unsigned int n, unsigned int dx, unsigned int dy, unsigned int squelch, unsigned int apathy)=0
Adds a data point for an analysis value 'n' at time 't', together with the analysis parameters (image...
static Database * create(const std::string &path)
Factory function.
virtual ~Database()
Destructor.
virtual std::string graph(std::string &, time_t start_time, time_t end_time)=0
Creates a graph image in the supplied string buffer and returns the image type.