This commit is contained in:
Travis Hunter 2023-04-22 12:49:00 -06:00
parent 4fc92cfb64
commit 92c753be73
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#include "MotorModelDatabase.h"
MotorModelDatabase::MotorModelDatabase()
{
}

View File

@ -0,0 +1,26 @@
#ifndef MOTORMODELDATABASE_H
#define MOTORMODELDATABASE_H
#include <vector>
#include "model/MotorModel.h"
class MotorModelDatabase
{
public:
MotorModelDatabase();
std::vector<MotorModel> findMotorsByManufacturer(const std::string& manu);
std::vector<MotorModel> findMotersByImpulseClass(const std::string& imClass);
MotorModel getMotorByName(const std::string& name);
std::vector<std::pair<double, double>> getThrustCurveByName(const std::string& motorName);
private:
std::vector<MotorModel> motors;
};
#endif // MOTORMODELDATABASE_H

View File

@ -18,6 +18,7 @@ SOURCES += \
gui/MainWindow.cpp \
model/MotorCase.cpp \
model/MotorModel.cpp \
model/MotorModelDatabase.cpp \
model/Rocket.cpp \
model/Thrustcurve.cpp \
sim/ConstantGravityModel.cpp \
@ -46,6 +47,7 @@ HEADERS += \
gui/qcustomplot.h \
model/MotorCase.h \
model/MotorModel.h \
model/MotorModelDatabase.h \
model/Rocket.h \
model/Thrustcurve.h \
sim/AtmosphericModel.h \