2
0

ADate.3 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .TH "ADate" 3 "Mon Jul 11 2022" "openPilotLog" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. ADate \- The \fBADate\fP class is responsible for input/output of Dates and handling the different Date Formats\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <adate\&.h>\fP
  11. .SS "Static Public Member Functions"
  12. .in +1c
  13. .ti -1c
  14. .RI "static QDate \fBparseInput\fP (QString &io_user_input, \fBOPL::DateFormat\fP format)"
  15. .br
  16. .RI "takes a user-provided input and tries to convert it to a (valid) QDate\&. "
  17. .ti -1c
  18. .RI "static void \fBtryToFix\fP (QString &io_user_input, \fBOPL::DateFormat\fP format)"
  19. .br
  20. .ti -1c
  21. .RI "static void \fBpadCentury\fP (QString &io_user_input, \fBOPL::DateFormat\fP format)"
  22. .br
  23. .RI "padCentury adds the century to a date where it was omitted "
  24. .ti -1c
  25. .RI "static void \fBpadZeroes\fP (QString &io_user_input)"
  26. .br
  27. .RI "pads a user-provided date string with 0s to facilitate conversion to QDate "
  28. .ti -1c
  29. .RI "static void \fBaddSeperators\fP (QString &io_user_input, const \fBOPL::DateFormat\fP &format)"
  30. .br
  31. .ti -1c
  32. .RI "static bool \fBcontainsSeperator\fP (const QString &user_input)"
  33. .br
  34. .ti -1c
  35. .RI "static QString \fBtoString\fP (const QDate &date, \fBOPL::DateFormat\fP format=OPL::DateFormat::ISODate)"
  36. .br
  37. .RI "Reimplements QDate::toString to accept OPL::Date::ADateFormat enums\&. "
  38. .ti -1c
  39. .RI "static const QStringList & \fBgetDisplayNames\fP ()"
  40. .br
  41. .ti -1c
  42. .RI "static const QString \fBgetFormatString\fP (\fBOPL::DateFormat\fP format)"
  43. .br
  44. .ti -1c
  45. .RI "static const QString \fBcurrentDate\fP ()"
  46. .br
  47. .RI "today Returns a string containing the current date in ISO format "
  48. .in -1c
  49. .SH "Detailed Description"
  50. .PP
  51. The \fBADate\fP class is responsible for input/output of Dates and handling the different Date Formats\&.
  52. .SH "Member Function Documentation"
  53. .PP
  54. .SS "const QString ADate::currentDate ()\fC [static]\fP"
  55. .PP
  56. today Returns a string containing the current date in ISO format
  57. .PP
  58. \fBReturns\fP
  59. .RS 4
  60. .RE
  61. .PP
  62. .SS "QDate ADate::parseInput (QString & io_user_input, \fBOPL::DateFormat\fP format)\fC [static]\fP"
  63. .PP
  64. takes a user-provided input and tries to convert it to a (valid) QDate\&.
  65. .PP
  66. \fBReturns\fP
  67. .RS 4
  68. QDate (invalid if input not recognized)
  69. .RE
  70. .PP
  71. .SH "Author"
  72. .PP
  73. Generated automatically by Doxygen for openPilotLog from the source code\&.