MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / exportImplementation

Method exportImplementation

src/fileformats/ocd_file_export.cpp:630–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628
629
630bool OcdFileExport::exportImplementation()
631{
632 switch (ocd_version)
633 {
634 case 8:
635 return exportImplementation<Ocd::FormatV8>();
636
637 case 9:
638 case 10:
639 return exportImplementation<Ocd::FormatV9>();
640
641 case 11:
642 return exportImplementation<Ocd::FormatV11>();
643
644 case 12:
645 return exportImplementation<Ocd::FormatV12>();
646
647 default:
648 throw FileFormatException(
649 ::OpenOrienteering::Exporter::tr("Could not write file: %1").
650 arg(::OpenOrienteering::OcdFileExport::tr("OCD files of version %1 are not supported!")
651 .arg(ocd_version))
652 );
653 }
654}
655
656
657

Callers

nothing calls this directly

Calls 9

FileFormatExceptionClass · 0.85
setupFileHeaderGenericFunction · 0.85
toUtf8Method · 0.80
isColorUsedByASymbolMethod · 0.80
getRegistrationColorMethod · 0.80
insertMethod · 0.45
headerMethod · 0.45
writeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected