Abstract base class for babel GPS formats.
More...
#include <qgsbabelformat.h>
|
virtual | ~QgsAbstractBabelFormat ()=default |
|
Qgis::BabelFormatCapabilities | capabilities () const |
| Returns the format's capabilities. More...
|
|
virtual QStringList | exportCommand (const QString &babel, Qgis::GpsFeatureType featureType, const QString &input, const QString &output, Qgis::BabelCommandFlags flags=Qgis::BabelCommandFlags()) const |
| Generates a command for exporting GPS data into a different format using babel. More...
|
|
virtual QStringList | importCommand (const QString &babel, Qgis::GpsFeatureType featureType, const QString &input, const QString &output, Qgis::BabelCommandFlags flags=Qgis::BabelCommandFlags()) const |
| Generates a command for importing data into a GPS format using babel. More...
|
|
QString | name () const |
| Returns the format's name. More...
|
|
Abstract base class for babel GPS formats.
- Since
- QGIS 3.22
Definition at line 33 of file qgsbabelformat.h.
◆ ~QgsAbstractBabelFormat()
virtual QgsAbstractBabelFormat::~QgsAbstractBabelFormat |
( |
| ) |
|
|
virtualdefault |
◆ QgsAbstractBabelFormat()
QgsAbstractBabelFormat::QgsAbstractBabelFormat |
( |
const QString & |
name = QString() | ) |
|
|
explicitprotected |
◆ capabilities()
Qgis::BabelFormatCapabilities QgsAbstractBabelFormat::capabilities |
( |
| ) |
const |
◆ exportCommand()
QStringList QgsAbstractBabelFormat::exportCommand |
( |
const QString & |
babel, |
|
|
Qgis::GpsFeatureType |
featureType, |
|
|
const QString & |
input, |
|
|
const QString & |
output, |
|
|
Qgis::BabelCommandFlags |
flags = Qgis::BabelCommandFlags() |
|
) |
| const |
|
virtual |
Generates a command for exporting GPS data into a different format using babel.
- Parameters
-
babel | path to the babel executable |
featureType | type of GPS feature to export |
input | input data path |
output | output path |
flags | optional flags to control how babel command is generated |
Returns an empty list if the format does not support exports (see capabilities()).
Reimplemented in QgsBabelGpsDeviceFormat.
Definition at line 51 of file qgsbabelformat.cpp.
◆ featureTypeToArgument()
Converts a GPS feature type to the equivalent babel argument.
Definition at line 27 of file qgsbabelformat.cpp.
◆ importCommand()
QStringList QgsAbstractBabelFormat::importCommand |
( |
const QString & |
babel, |
|
|
Qgis::GpsFeatureType |
featureType, |
|
|
const QString & |
input, |
|
|
const QString & |
output, |
|
|
Qgis::BabelCommandFlags |
flags = Qgis::BabelCommandFlags() |
|
) |
| const |
|
virtual |
Generates a command for importing data into a GPS format using babel.
- Parameters
-
babel | babel path to the babel executable |
featureType | type of GPS feature to import |
input | input data path |
output | output path |
flags | optional flags to control how babel command is generated |
Returns an empty list if the format does not support imports (see capabilities()).
Reimplemented in QgsBabelSimpleImportFormat, and QgsBabelGpsDeviceFormat.
Definition at line 46 of file qgsbabelformat.cpp.
◆ name()
QString QgsAbstractBabelFormat::name |
( |
| ) |
const |
◆ mCapabilities
Qgis::BabelFormatCapabilities QgsAbstractBabelFormat::mCapabilities = Qgis::BabelFormatCapabilities() |
|
protected |
◆ mName
QString QgsAbstractBabelFormat::mName |
|
protected |
The documentation for this class was generated from the following files: