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 vector of Database::entry.
- Parameters
-
const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest.
Definition: export.cpp:30
◆ print()
virtual void remwharead::Export::ExportBase::print |
( |
| ) |
const |
|
pure virtual |
◆ sort_entries()
Sort entries from newest to oldest.
- Parameters
-
- Returns
- Sorted vector of Database::entry.
32 entries.sort([](
const auto &a,
const auto &b)
34 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