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

Method FileFormat

src/fileformats/file_format.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66// ### FileFormat ###
67
68FileFormat::FileFormat(FileFormat::FileType file_type, const char* id, const QString& description, const QString& file_extension, Features features)
69 : file_type(file_type),
70 format_id(id),
71 format_description(description),
72 format_features(features)
73{
74 Q_ASSERT(file_type != 0);
75 Q_ASSERT(qstrlen(id) > 0);
76 Q_ASSERT(!description.isEmpty());
77 if (!file_extension.isEmpty())
78 addExtension(file_extension);
79}
80
81FileFormat::~FileFormat() = default;
82

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected