Base class for exports.
More...
#include <remwharead/export/export.hpp>
Base class for exports.
- Since
- 0.6.0
◆ ExportBase()
remwharead::Export::ExportBase::ExportBase |
( |
const list< Database::entry > & |
entries, |
|
|
ostream & |
out = cout |
|
) |
| |
|
explicit |
Export list of Database::entry.
- Parameters
-
list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest and remove duplicates.
Definition: export.cpp:28
◆ print()
virtual void remwharead::Export::ExportBase::print |
( |
| ) |
const |
|
pure virtual |
◆ sort_entries()
Sort entries from newest to oldest and remove duplicates.
- Parameters
-
- Returns
- Sorted list of Database::entry.
30 entries.sort([](
const auto &a,
const auto &b)
32 return (a.datetime > b.datetime);
The documentation for this class was generated from the following files:
- include/export/export.hpp
- src/lib/export/export.cpp