Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

int main ( int  argc,
char *  argv[] 
)

Definition at line 1150 of file SurveillanceApp.cpp.

References Impala::Application::SDash::SurveillanceApp::CleanUp(), Impala::Application::SDash::gCamMovementInfoPath, Impala::Application::SDash::gDataRoot, Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), Impala::Application::SDash::gIpAddress, Impala::Application::SDash::gRoiPath, Impala::Application::SDash::gVideoPathMichael, Impala::Application::SDash::gVideoPathThang, Impala::Application::SDash::gXmlPathMichael, Impala::CmdOptions::Initialise(), OglEventLoop(), Impala::CmdOptions::ParseArgs(), and OglGui::OglWindow::Valid().

01151 {
01152     Impala::CmdOptions& options = Impala::CmdOptions::GetInstance();
01153     options.Initialise(false, false, false);
01154 
01155     if (! options.ParseArgs(argc, argv, "<data root path> <ip-address>", 1))
01156     {
01157         fprintf( stderr, "command line parsing failed\n" );
01158         return 1;
01159     }
01160 
01161     gDataRoot = options.GetArg(0) + std::string("/");
01162     gVideoPathThang = gDataRoot + std::string("thang/video/");
01163     gRoiPath = gDataRoot + std::string("thang/roi/");
01164 
01165 #ifdef RICHARD
01166     gVideoPathMichael = gDataRoot + std::string("michael/GD_sequence/");
01167     gXmlPathMichael = gVideoPathMichael;
01168 #else
01169     gVideoPathMichael = gDataRoot + std::string("michael/images/");
01170     gXmlPathMichael = gDataRoot + std::string("michael/annotation/");
01171 #endif
01172     gCamMovementInfoPath = gDataRoot + std::string("nicolaas/");
01173 
01174     gIpAddress = argc > 1 ? options.GetArg(1) : "";
01175 
01177     //{
01178     //    AlertRelay relay(gIpAddress);
01179     //    if (relay.IsReady())
01180     //    {
01181     //        relay.Relay("first message from sdash");
01182     //        relay.Relay("second message from sdash");
01183     //    }
01184     //}
01185 
01186     OglInit(&argc, &argv[0]);
01187 
01188     SurveillanceApp* wnd = new SurveillanceApp(1272, 960);
01189 
01190     if (!wnd->Valid())
01191     {
01192         fprintf( stderr, "GUI setup failed\n" );
01193         return 2;
01194     }
01195 
01196     OglEventLoop();
01197 
01198     wnd->CleanUp();
01199     
01200     return 0;
01201 }

Here is the call graph for this function:


Generated on Fri Mar 19 09:39:28 2010 for ImpalaSrc by  doxygen 1.5.1