6 #ifndef SWIFT_MISC_SIMULATION_XPLANE_AIRCRAFTMODELLOADERXPLANE_H
7 #define SWIFT_MISC_SIMULATION_XPLANE_AIRCRAFTMODELLOADERXPLANE_H
12 #include <QStringList>
25 namespace simulation::xplane
43 virtual bool isLoadingFinished()
const override;
53 const QStringList &modelDirectories)
override;
66 QString getModelName()
const;
78 ObjectVersion objectVersion;
80 bool hasErrors =
false;
86 bool hasValidHeader()
const {
return !name.isEmpty() && !path.isEmpty(); }
90 QVector<CSLPlane> planes;
94 const QStringList &excludeDirectories);
96 const QStringList &excludeDirectories);
97 CAircraftModelList parseCslPackages(
const QString &rootDirectory,
const QStringList &excludeDirectories);
99 bool doPackageSub(QString &ioPath);
101 bool parseExportCommand(
const QStringList &tokens, CSLPackage &package,
const QString &path,
int lineNum);
102 bool parseDependencyCommand(
const QStringList &tokens, CSLPackage &package,
const QString &path,
104 bool parseObjectCommand(
const QStringList &tokens, CSLPackage &package,
const QString &path,
int lineNum);
105 bool parseTextureCommand(
const QStringList &tokens, CSLPackage &package,
const QString &path,
int lineNum);
106 bool parseAircraftCommand(
const QStringList &tokens, CSLPackage &package,
const QString &path,
int lineNum);
107 bool parseObj8AircraftCommand(
const QStringList &tokens, CSLPackage &package,
const QString &path,
109 bool parseObj8Command(
const QStringList &tokens, CSLPackage &package,
const QString &path,
int lineNum);
110 bool parseHasGearCommand(
const QStringList &tokens, CSLPackage &package,
const QString &path,
int lineNum);
111 bool parseIcaoCommand(
const QStringList &tokens, CSLPackage &package,
const QString &path,
int lineNum);
112 bool parseAirlineCommand(
const QStringList &tokens, CSLPackage &package,
const QString &path,
int lineNum);
113 bool parseLiveryCommand(
const QStringList &tokens, CSLPackage &package,
const QString &path,
int lineNum);
114 bool parseDummyCommand(
const QStringList &tokens, CSLPackage &package,
const QString &path,
int lineNum);
116 CSLPackage parsePackageHeader(
const QString &path,
const QString &content);
117 void parseFullPackage(
const QString &content, CSLPackage &package);
121 QPointer<CWorker> m_parserWorker;
125 static const QString &fileFilterFlyable();
126 static const QString &fileFilterCsl();
Aircraft model (used by another pilot, my models on disk)
Value object encapsulating a list of aircraft models.
Load the aircraft for a simulator.
std::function< int(swift::misc::simulation::CAircraftModelList &, bool)> ModelConsolidationCallback
Callback to consolidate data, normally with DB data.
XPlane aircraft model loader.
Free functions in swift::misc.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.