2022-03-06 15:17:54 -05:00
|
|
|
/*
|
|
|
|
main.cpp
|
|
|
|
Entry point for the example NavProject. Also contains example of a simple user Navigator::Application.
|
|
|
|
|
|
|
|
GWM -- Feb 2022
|
|
|
|
*/
|
2021-12-18 19:23:14 -05:00
|
|
|
#include "Navigator.h"
|
2022-02-05 13:20:45 -05:00
|
|
|
#include "SPSAnalysisStage.h"
|
2021-12-18 19:23:14 -05:00
|
|
|
|
2022-03-06 15:17:54 -05:00
|
|
|
//User application class. Pushes user analysis stages.
|
2022-02-05 13:20:45 -05:00
|
|
|
class SPSApp : public Navigator::Application
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SPSApp() :
|
|
|
|
Navigator::Application()
|
|
|
|
{
|
|
|
|
PushAnalysisStage(new Navigator::SPSAnalysisStage());
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2022-03-06 15:17:54 -05:00
|
|
|
//Define the creation function to make our user application
|
2022-02-05 13:20:45 -05:00
|
|
|
Navigator::Application* Navigator::CreateApplication() { return new SPSApp(); }
|
2021-12-18 19:23:14 -05:00
|
|
|
|
2022-03-06 15:17:54 -05:00
|
|
|
//Make sure to initialize log BEFORE creating application.
|
2021-12-18 19:23:14 -05:00
|
|
|
int main(int argc, const char** argv)
|
|
|
|
{
|
|
|
|
Navigator::Logger::Init();
|
|
|
|
NAV_TRACE("Logger Initialized!");
|
|
|
|
|
|
|
|
auto app = Navigator::CreateApplication();
|
2022-01-16 23:55:23 -05:00
|
|
|
|
2021-12-18 19:23:14 -05:00
|
|
|
app->Run();
|
|
|
|
|
|
|
|
delete app;
|
|
|
|
}
|