| 66 | // ### FileFormat ### |
| 67 | |
| 68 | FileFormat::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 | |
| 81 | FileFormat::~FileFormat() = default; |
| 82 |