123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- .TH "ADate" 3 "Fri Mar 4 2022" "openPilotLog" \" -*- nroff -*-
- .ad l
- .nh
- .SH NAME
- ADate \- The \fBADate\fP class is responsible for input/output of Dates and handling the different Date Formats\&.
- .SH SYNOPSIS
- .br
- .PP
- .PP
- \fC#include <adate\&.h>\fP
- .SS "Static Public Member Functions"
- .in +1c
- .ti -1c
- .RI "static QDate \fBparseInput\fP (QString &io_user_input, Opl::Date::ADateFormat format)"
- .br
- .RI "takes a user-provided input and tries to convert it to a (valid) QDate\&. "
- .ti -1c
- .RI "static void \fBtryToFix\fP (QString &io_user_input, Opl::Date::ADateFormat format)"
- .br
- .ti -1c
- .RI "static void \fBpadCentury\fP (QString &io_user_input, Opl::Date::ADateFormat format)"
- .br
- .RI "padCentury adds the century to a date where it was omitted "
- .ti -1c
- .RI "static void \fBpadZeroes\fP (QString &io_user_input)"
- .br
- .RI "pads a user-provided date string with 0s to facilitate conversion to QDate "
- .ti -1c
- .RI "static void \fBaddSeperators\fP (QString &io_user_input, const Opl::Date::ADateFormat &format)"
- .br
- .ti -1c
- .RI "static bool \fBcontainsSeperator\fP (const QString &user_input)"
- .br
- .ti -1c
- .RI "static QString \fBtoString\fP (const QDate &date, Opl::Date::ADateFormat format=Opl::Date::ADateFormat::ISODate)"
- .br
- .RI "Reimplements QDate::toString to accept Opl::Date::ADateFormat enums\&. "
- .ti -1c
- .RI "static const QStringList & \fBgetDisplayNames\fP ()"
- .br
- .ti -1c
- .RI "static const QString \fBgetFormatString\fP (Opl::Date::ADateFormat format)"
- .br
- .in -1c
- .SH "Detailed Description"
- .PP
- The \fBADate\fP class is responsible for input/output of Dates and handling the different Date Formats\&.
- .SH "Member Function Documentation"
- .PP
- .SS "QDate ADate::parseInput (QString & io_user_input, Opl::Date::ADateFormat format)\fC [static]\fP"
- .PP
- takes a user-provided input and tries to convert it to a (valid) QDate\&.
- .PP
- \fBReturns\fP
- .RS 4
- QDate (invalid if input not recognized)
- .RE
- .PP
- .SH "Author"
- .PP
- Generated automatically by Doxygen for openPilotLog from the source code\&.
|