A babel format capable of interacting directly with a GPS device.
More...
#include <qgsbabelgpsdevice.h>
|
| QgsBabelGpsDeviceFormat ()=default |
| Default constructor. More...
|
|
| QgsBabelGpsDeviceFormat (const QString &waypointDownloadCommand, const QString &waypointUploadCommand, const QString &routeDownloadCommand, const QString &routeUploadCommand, const QString &trackDownloadCommand, const QString &trackUploadCommand) |
| Constructor for QgsBabelGpsDeviceFormat. More...
|
|
QStringList | exportCommand (const QString &babel, Qgis::GpsFeatureType type, const QString &in, const QString &out, Qgis::BabelCommandFlags flags=Qgis::BabelCommandFlags()) const override |
| Generates a command for exporting GPS data into a different format using babel. More...
|
|
QStringList | importCommand (const QString &babel, Qgis::GpsFeatureType type, const QString &in, const QString &out, Qgis::BabelCommandFlags flags=Qgis::BabelCommandFlags()) const override |
| Generates a command for importing data into a GPS format using babel. More...
|
|
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...
|
|
A babel format capable of interacting directly with a GPS device.
- Since
- QGIS 3.22
Definition at line 35 of file qgsbabelgpsdevice.h.
◆ QgsBabelGpsDeviceFormat() [1/2]
QgsBabelGpsDeviceFormat::QgsBabelGpsDeviceFormat |
( |
| ) |
|
|
default |
◆ QgsBabelGpsDeviceFormat() [2/2]
QgsBabelGpsDeviceFormat::QgsBabelGpsDeviceFormat |
( |
const QString & |
waypointDownloadCommand, |
|
|
const QString & |
waypointUploadCommand, |
|
|
const QString & |
routeDownloadCommand, |
|
|
const QString & |
routeUploadCommand, |
|
|
const QString & |
trackDownloadCommand, |
|
|
const QString & |
trackUploadCommand |
|
) |
| |
Constructor for QgsBabelGpsDeviceFormat.
- Parameters
-
waypointDownloadCommand | command for downloading waypoints from device |
waypointUploadCommand | command for uploading waypoints to device |
routeDownloadCommand | command for downloading routes from device |
routeUploadCommand | command for uploading routes to device |
trackDownloadCommand | command for downloading tracks from device |
trackUploadCommand | command for uploading tracks to device |
Definition at line 20 of file qgsbabelgpsdevice.cpp.
◆ exportCommand()
QStringList QgsBabelGpsDeviceFormat::exportCommand |
( |
const QString & |
babel, |
|
|
Qgis::GpsFeatureType |
featureType, |
|
|
const QString & |
input, |
|
|
const QString & |
output, |
|
|
Qgis::BabelCommandFlags |
flags = Qgis::BabelCommandFlags() |
|
) |
| const |
|
overridevirtual |
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 from QgsAbstractBabelFormat.
Definition at line 142 of file qgsbabelgpsdevice.cpp.
◆ importCommand()
QStringList QgsBabelGpsDeviceFormat::importCommand |
( |
const QString & |
babel, |
|
|
Qgis::GpsFeatureType |
featureType, |
|
|
const QString & |
input, |
|
|
const QString & |
output, |
|
|
Qgis::BabelCommandFlags |
flags = Qgis::BabelCommandFlags() |
|
) |
| const |
|
overridevirtual |
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 from QgsAbstractBabelFormat.
Definition at line 104 of file qgsbabelgpsdevice.cpp.
The documentation for this class was generated from the following files: