WIP
This commit is contained in:
parent
4fc92cfb64
commit
92c753be73
6
model/MotorModelDatabase.cpp
Normal file
6
model/MotorModelDatabase.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include "MotorModelDatabase.h"
|
||||
|
||||
MotorModelDatabase::MotorModelDatabase()
|
||||
{
|
||||
|
||||
}
|
26
model/MotorModelDatabase.h
Normal file
26
model/MotorModelDatabase.h
Normal 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
|
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user