| 628 | |
| 629 | |
| 630 | bool 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 |
nothing calls this directly
no test coverage detected