VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Gv::DatabaseWrapper Class Reference

A concrete Database class that aggregates up to one second intervals and then delegates to (eg.) DatabaseRrd. More...

+ Inheritance diagram for Gv::DatabaseWrapper:

Public Member Functions

 DatabaseWrapper (const std::string &path)
 
virtual void add (time_t, unsigned int n, unsigned int dx, unsigned int dy, unsigned int squelch, unsigned int apathy) override
 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) override
 Creates a graph image in the supplied string buffer and returns the image type. More...
 
- Public Member Functions inherited from Gv::Database
virtual ~Database ()
 Destructor.
 

Additional Inherited Members

- Static Public Member Functions inherited from Gv::Database
static Databasecreate (const std::string &path)
 Factory function.
 

Detailed Description

A concrete Database class that aggregates up to one second intervals and then delegates to (eg.) DatabaseRrd.

Definition at line 41 of file gvdatabase.cpp.

Member Function Documentation

void Gv::DatabaseWrapper::add ( time_t  t,
unsigned int  n,
unsigned int  dx,
unsigned int  dy,
unsigned int  squelch,
unsigned int  apathy 
)
overridevirtual

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

Implements Gv::Database.

Definition at line 103 of file gvdatabase.cpp.

std::string Gv::DatabaseWrapper::graph ( std::string &  ,
time_t  start_time,
time_t  end_time 
)
overridevirtual

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

Returns the empty string if not valid.

Implements Gv::Database.

Definition at line 130 of file gvdatabase.cpp.


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