QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
Abstract base class for babel GPS formats. More...
#include <qgsbabelformat.h>
Public Member Functions | |
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... | |
Protected Member Functions | |
QgsAbstractBabelFormat (const QString &name=QString()) | |
Constructor for QgsAbstractBabelFormat, with the specified name. More... | |
Static Protected Member Functions | |
static QString | featureTypeToArgument (Qgis::GpsFeatureType type) |
Converts a GPS feature type to the equivalent babel argument. More... | |
Protected Attributes | |
Qgis::BabelFormatCapabilities | mCapabilities = Qgis::BabelFormatCapabilities() |
QString | mName |
Name of format. More... | |
Abstract base class for babel GPS formats.
Definition at line 33 of file qgsbabelformat.h.
|
virtualdefault |
|
explicitprotected |
Constructor for QgsAbstractBabelFormat, with the specified name.
Definition at line 22 of file qgsbabelformat.cpp.
Qgis::BabelFormatCapabilities QgsAbstractBabelFormat::capabilities | ( | ) | const |
Returns the format's capabilities.
Definition at line 56 of file qgsbabelformat.cpp.
|
virtual |
Generates a command for exporting GPS data into a different format using babel.
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.
|
staticprotected |
Converts a GPS feature type to the equivalent babel argument.
Definition at line 27 of file qgsbabelformat.cpp.
|
virtual |
Generates a command for importing data into a GPS format using babel.
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 QgsBabelGpsDeviceFormat, and QgsBabelSimpleImportFormat.
Definition at line 46 of file qgsbabelformat.cpp.
QString QgsAbstractBabelFormat::name | ( | ) | const |
Returns the format's name.
Definition at line 41 of file qgsbabelformat.cpp.
|
protected |
Definition at line 98 of file qgsbabelformat.h.
|
protected |
Name of format.
Definition at line 96 of file qgsbabelformat.h.