17 #ifndef REMWHAREAD_EXPORT_EXPORT_HPP 18 #define REMWHAREAD_EXPORT_EXPORT_HPP 24 namespace remwharead::Export
45 explicit ExportBase(
const list<Database::entry> &entries,
57 virtual void print()
const = 0;
60 const list<Database::entry> _entries;
71 list<Database::entry>
sort_entries(list<Database::entry> entries)
const;
75 #endif // REMWHAREAD_EXPORT_EXPORT_HPP ExportBase(const list< Database::entry > &entries, ostream &out=cout)
Export list of Database::entry.
Definition: export.cpp:22
Base class for exports.
Definition: export.hpp:36
virtual void print() const =0
Print output to std::ostream.
list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest and remove duplicates.
Definition: export.cpp:28