2018-06-10 13:43:20 +00:00
|
|
|
#ifndef FG_TEST_GLOBALS_HELPERS_HXX
|
|
|
|
#define FG_TEST_GLOBALS_HELPERS_HXX
|
2018-07-16 13:59:21 +00:00
|
|
|
|
|
|
|
#include <string>
|
2019-04-23 17:10:39 +00:00
|
|
|
#include <simgear/structure/SGSharedPtr.hxx>
|
2018-07-16 13:59:21 +00:00
|
|
|
|
2018-10-10 08:26:06 +00:00
|
|
|
class SGGeod;
|
|
|
|
|
2019-04-23 17:10:39 +00:00
|
|
|
namespace flightgear
|
|
|
|
{
|
|
|
|
class FlightPlan;
|
|
|
|
typedef SGSharedPtr<FlightPlan> FlightPlanRef;
|
|
|
|
}
|
|
|
|
|
2018-07-16 13:59:21 +00:00
|
|
|
namespace FGTestApi {
|
|
|
|
|
|
|
|
namespace setUp {
|
|
|
|
|
|
|
|
void initTestGlobals(const std::string& testName);
|
|
|
|
|
2019-04-23 17:10:39 +00:00
|
|
|
void populateFP(flightgear::FlightPlanRef f,
|
|
|
|
const std::string& depICAO, const std::string& depRunway,
|
|
|
|
const std::string& destICAO, const std::string& destRunway,
|
|
|
|
const std::string& waypoints);
|
|
|
|
|
2018-07-16 13:59:21 +00:00
|
|
|
} // End of namespace setUp.
|
|
|
|
|
2018-10-10 08:26:06 +00:00
|
|
|
void setPosition(const SGGeod& g);
|
2018-07-16 13:59:21 +00:00
|
|
|
|
2019-04-22 10:57:55 +00:00
|
|
|
void runForTime(double t);
|
|
|
|
|
2018-07-16 13:59:21 +00:00
|
|
|
namespace tearDown {
|
|
|
|
|
|
|
|
void shutdownTestGlobals();
|
|
|
|
|
|
|
|
} // End of namespace tearDown.
|
|
|
|
|
|
|
|
} // End of namespace FGTestApi.
|
|
|
|
|
2018-06-10 13:43:20 +00:00
|
|
|
#endif // of FG_TEST_GLOBALS_HELPERS_HXX
|