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
2022-03-06 15:17:54 -05:00

35 lines
784 B
C++

/*
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"
//User application class. Pushes user analysis stages.
class SPSApp : public Navigator::Application
{
public:
SPSApp() :
Navigator::Application()
{
PushAnalysisStage(new Navigator::SPSAnalysisStage());
}
};
//Define the creation function to make our user application
Navigator::Application* Navigator::CreateApplication() { return new SPSApp(); }
//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();
app->Run();
delete app;
}