|
libdballe
8.6
|
Classes | |
| class | Update |
Public Member Functions | |
| BaseExplorer (const BaseExplorer &)=delete | |
| BaseExplorer (BaseExplorer &&)=delete | |
| BaseExplorer & | operator= (const BaseExplorer &)=delete |
| BaseExplorer & | operator= (BaseExplorer &&)=delete |
| const dballe::Query & | get_filter () const |
| Get the current filter. | |
| void | set_filter (const dballe::Query &query) |
| Set a new filter, updating all browsing data. | |
| Update | rebuild () |
| Throw away all cached data and rebuild the explorer from scratch. More... | |
| Update | update () |
| Merge new data into the explorer. | |
| const dballe::db::BaseSummary< Station > & | global_summary () const |
| Get a reference to the global summary. | |
| const dballe::db::BaseSummary< Station > & | active_summary () const |
| Get a reference to the summary for the current filter. | |
| void | to_json (core::JSONWriter &writer) const |
| Export the explorer to JSON. | |
Protected Member Functions | |
| void | update_active_summary () |
| Regenerate _active_summary based on filter. | |
Protected Attributes | |
| dballe::db::BaseSummary< Station > * | _global_summary = nullptr |
| Summary of the whole database. | |
| dballe::core::Query | filter |
| Currently active filter. | |
| dballe::db::BaseSummary< Station > * | _active_summary = nullptr |
| Summary of active_filter. | |
| Update dballe::db::BaseExplorer< Station >::rebuild | ( | ) |
Throw away all cached data and rebuild the explorer from scratch.
Use this when you suspect that the database has been externally modified
1.8.16