1
0
Fork 0
mirror of https://github.com/gwm17/Specter.git synced 2024-11-23 02:38:52 -05:00
Specter/NavProject/main.cpp

35 lines
784 B
C++
Raw Normal View History

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
*/
#include "Navigator.h"
#include "SPSAnalysisStage.h"
2022-03-06 15:17:54 -05:00
//User application class. Pushes user analysis stages.
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
Navigator::Application* Navigator::CreateApplication() { return new SPSApp(); }
2022-03-06 15:17:54 -05:00
//Make sure to initialize log BEFORE creating application.
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
app->Run();
delete app;
}