Base class for exports.
More...
#include <remwharead/export/export.hpp>
Base class for exports.
- Since
- 0.6.0
◆ 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
◆ 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 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:
- include/export/export.hpp
- src/lib/export/export.cpp