Export as simple list.
More...
#include <remwharead/export/simple.hpp>
Export as simple list.
- Since
- 0.6.0
◆ ExportBase()
remwharead::Export::ExportBase::ExportBase |
|
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()
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:
- include/export/simple.hpp
- src/lib/export/simple.cpp