2
0

Opl_Db.3 802 B

1234567891011121314151617181920
  1. .TH "Opl::Db" 3 "Tue May 4 2021" "openPilotLog" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. Opl::Db
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .SH "Detailed Description"
  10. .PP
  11. The opl::db namespace provides string literals to programatically access the database
  12. .PP
  13. Example usage, do: newData\&.insert(opl::db::FLIGHTS_DEP, ui->deptLocLineEdit->text()); newData\&.value(opl::db::AIRCRAFT_MULTIPILOT);
  14. .PP
  15. instead of: newData\&.insert('dept', ui->deptLocLineEdit->text()); newData\&.value('multipilot');
  16. .PP
  17. Declaring these literals here avoids memory allocation at runtime for construction of temporary qstrings like ('dept')\&. See https://doc.qt.io/qt-5/qstring.html#QStringLiteral and ensures uniform use throughout the application\&.
  18. .SH "Author"
  19. .PP
  20. Generated automatically by Doxygen for openPilotLog from the source code\&.