◆ ExportBase()
remwharead::Export::ExportBase::ExportBase |
( |
const vector< Database::entry > & |
entries, |
|
|
ostream & |
out = cout |
|
) |
| |
|
explicit |
Export vector of Database::entry.
- Parameters
-
const vector< Database::entry > sort_entries(vector< Database::entry > entries) const
Sort entries from newest to oldest.
Definition: export.cpp:30
◆ sort_entries()
Sort entries from newest to oldest.
- Parameters
-
- Returns
- Sorted vector of Database::entry.
32 std::sort(entries.begin(), entries.end(),
33 [](
const auto &a,
const auto &b)
35 return (a.datetime > b.datetime);
The documentation for this class was generated from the following files:
- src/lib/export/export.hpp
- src/lib/export/export.cpp