![]() |
Mapper
0.9.0
API documentation
|
Map exporter for the xml based map format. More...
#include <xml_file_format_p.h>
Public Member Functions | |
XMLFileExporter (const QString &path, const Map *map, const MapView *view) | |
XMLFileExporter ()=delete | |
XMLFileExporter (const XMLFileExporter &)=delete | |
XMLFileExporter (XMLFileExporter &&)=delete | |
~XMLFileExporter () override | |
XMLFileExporter & | operator= (const XMLFileExporter &)=delete |
XMLFileExporter & | operator= (XMLFileExporter &&)=delete |
![]() | |
Exporter (const QString &path, const Map *map, const MapView *view) | |
Creates a new Exporter with the given path, map, and view. More... | |
~Exporter () override | |
Destroys the current Exporter. More... | |
bool | doExport () |
Exports the map and view. More... | |
![]() | |
ImportExport (QIODevice *device=nullptr) | |
Creates a new importer or exporter with the given IO device. More... | |
ImportExport (const ImportExport &)=delete | |
ImportExport (ImportExport &&)=delete | |
virtual | ~ImportExport () |
Destroys an importer or exporter. More... | |
virtual bool | supportsQIODevice () const noexcept |
Returns true when the importer/exporter supports QIODevice. More... | |
QIODevice * | device () const noexcept |
Returns the input device if it has been set or created. More... | |
void | setDevice (QIODevice *device) |
Sets a custom input device to be used for import. More... | |
void | setOption (const QString &name, const QVariant &value) |
Sets an option in this importer or exporter. More... | |
QVariant | option (const QString &name) const |
Retrieves the value of an option in this instance. More... | |
void | addWarning (const QString &str) |
Adds a string to the current list of warnings. More... | |
const std::vector< QString > & | warnings () const noexcept |
Returns the current list of warnings collected by this object. More... | |
Protected Member Functions | |
bool | exportImplementation () override |
Actual implementation of the export. More... | |
void | exportGeoreferencing () |
void | exportColors () |
void | exportSymbols () |
void | exportMapParts () |
void | exportTemplates () |
void | exportView () |
void | exportPrint () |
void | exportUndo () |
void | exportRedo () |
Additional Inherited Members | |
![]() | |
const QString | path |
The output path. More... | |
const Map *const | map |
The Map to import or export. More... | |
const MapView *const | view |
The MapView to import or export. More... | |
Map exporter for the xml based map format.
OpenOrienteering::XMLFileExporter::XMLFileExporter | ( | const QString & | path, |
const Map * | map, | ||
const MapView * | view | ||
) |
|
delete |
|
delete |
|
delete |
|
overridedefault |
|
protected |
|
protected |
|
overrideprotectedvirtual |
Actual implementation of the export.
Exporters which support input from QIODevice shall use the device(). They must not open or close the device.
If information might be lost in the export, a message shall be recorded by calling addWarning() with a translated, useful description of the issue. If a fatal error is encountered, then this method may either throw an exception, or log an error message with addWarning() and return false.
There is no default implementation.
Implements OpenOrienteering::Exporter.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
delete |
|
delete |