VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Gv::Database Class Referenceabstract

An abstract interface for a timeseries database that holds video analysis statistics. More...

#include <gvdatabase.h>

+ Inheritance diagram for Gv::Database:

Public Member Functions

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 size, 'squelch' and 'apathy'). More...
 
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. More...
 
virtual ~Database ()
 Destructor.
 

Static Public Member Functions

static Databasecreate (const std::string &path)
 Factory function.
 

Detailed Description

An abstract interface for a timeseries database that holds video analysis statistics.

Definition at line 37 of file gvdatabase.h.

Member Function Documentation

virtual void Gv::Database::add ( time_t  t,
unsigned int  n,
unsigned int  dx,
unsigned int  dy,
unsigned int  squelch,
unsigned int  apathy 
)
pure virtual

Adds a data point for an analysis value 'n' at time 't', together with the analysis parameters (image size, 'squelch' and 'apathy').

Implemented in Gv::DatabaseWrapper.

virtual std::string Gv::Database::graph ( std::string &  ,
time_t  start_time,
time_t  end_time 
)
pure virtual

Creates a graph image in the supplied string buffer and returns the image type.

Returns the empty string if not valid.

Implemented in Gv::DatabaseWrapper.


The documentation for this class was generated from the following files: