Enroute Flight Navigation
A navigation app for VFR pilots
FileFormats::CSV Class Reference

CSV file support class. More...

#include <CSV.h>

Inheritance diagram for FileFormats::CSV:
FileFormats::DataFileAbstract

Public Member Functions

 CSV (const QString &fileName)
 Constructor.
 
QVector< QStringList > lines () const
 Waypoints specified in the CUP file.
 
- Public Member Functions inherited from FileFormats::DataFileAbstract
bool isValid () const
 Validity check.
 
QString error () const
 Error string.
 
QStringList warnings () const
 Warnings.
 

Static Public Member Functions

static QStringList mimeTypes ()
 Mime type for files that can be opened by this class.
 
- Static Public Member Functions inherited from FileFormats::DataFileAbstract
static QSharedPointer< QFile > openFileURL (const QString &fileName)
 Open file, file URL or Android content URL.
 

Detailed Description

CSV file support class.

The methods of this class read CSV files.

Definition at line 36 of file CSV.h.

Constructor & Destructor Documentation

◆ CSV()

FileFormats::CSV::CSV ( const QString & fileName)

Constructor.

This method reads a CSV file.

Parameters
fileNameName of a CSV file

Member Function Documentation

◆ lines()

QVector< QStringList > FileFormats::CSV::lines ( ) const
inlinenodiscard

Waypoints specified in the CUP file.

Returns
Waypoints specified in the CUP file

Definition at line 58 of file CSV.h.

◆ mimeTypes()

static QStringList FileFormats::CSV::mimeTypes ( )
inlinestaticnodiscard

Mime type for files that can be opened by this class.

Returns
Name of mime type

Definition at line 69 of file CSV.h.


The documentation for this class was generated from the following file: