Export as simple list.
More...
#include <simple.hpp>
◆ ExportBase()
remwharead::Export::ExportBase::ExportBase |
|
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()
void remwharead::Export::Simple::print |
( |
| ) |
const |
|
overridevirtual |
Print output to std::ostream.
Implements remwharead::Export::ExportBase.
30 const string timestring = timepoint_to_string(entry.datetime);
31 _out << timestring.substr(0, timestring.find(
'T')) <<
": ";
32 if (!entry.title.empty())
34 _out << entry.title <<
'\n';
38 _out <<
"<" << entry.uri <<
">\n";
struct remwharead::Database::entry entry
Describes a database entry.
The documentation for this class was generated from the following files:
- src/lib/export/simple.hpp
- src/lib/export/simple.cpp