|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Parses text to dates and date-times for Date and DateTime columns that hold text, and for filter values on those columns. More...
#include <data_source.hpp>
Public Member Functions | |
| virtual std::optional< std::int64_t > | parseDate (std::string_view text, std::string_view format) const =0 |
| Parses a date. | |
| virtual std::optional< std::int64_t > | parseDateTime (std::string_view text, std::string_view format) const =0 |
| Parses a date-time. | |
| virtual std::shared_ptr< DateParser const > | cloneForTask () const |
| An instance for one task to use alone. | |
Parses text to dates and date-times for Date and DateTime columns that hold text, and for filter values on those columns.
The same thread-safety contract as TextCollator.
Definition at line 292 of file data_source.hpp.
|
nodiscardpure virtual |
Parses a date.
| text | The text. |
| format | The column's format; empty for the parser's default. |
text is not a date. Implemented in morph::table::IsoDateParser.
|
nodiscardpure virtual |
Parses a date-time.
| text | The text. |
| format | The column's format; empty for the parser's default. |
text is not a date-time. Implemented in morph::table::IsoDateParser.
|
inlinenodiscardvirtual |
An instance for one task to use alone.
Definition at line 313 of file data_source.hpp.