libdballe  7.21
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
dballe::db::Summary Class Reference

High level objects for working with DB-All.e DB summaries. More...

#include <summary.h>

Public Member Functions

 Summary (const dballe::Query &query)
 
bool is_valid () const
 Return true if the summary has been filled with data.
 
const Datetimedatetime_min () const
 
const Datetimedatetime_max () const
 
unsigned data_count () const
 
summary::Support supports (const Query &query) const
 Checks if this summary correctly generate a summary for the given query.
 
void add_summary (db::CursorSummary &cur, bool with_details)
 Add an entry to the summary taken from the current status of cur.
 
void add_entry (const summary::Entry &entry)
 Add a copy of an existing entry.
 
bool iterate (std::function< bool(const summary::Entry &)> f) const
 Iterate all values in the summary.
 

Public Attributes

bool valid = false
 
std::set< int > all_stations
 
std::set< std::string > all_reports
 
std::set< dballe::Levelall_levels
 
std::set< dballe::Trangeall_tranges
 
std::set< wreport::Varcodeall_varcodes
 
dballe::DatetimeRange dtrange
 
unsigned count = MISSING_INT
 

Protected Member Functions

void aggregate (const summary::Entry &entry)
 

Protected Attributes

core::Query query
 
std::vector< summary::Entrysummary
 

Detailed Description

High level objects for working with DB-All.e DB summaries.


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