Definition at line 14 of file mainVideoJobManager.cpp. References Impala::CmdOptions::AddOption(), Impala::atol(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::GetString(), ILOG_ERROR, ILOG_VAR, Impala::CmdOptions::Initialise(), Impala::CmdOptions::ParseArgs(), Impala::Core::VideoJob::Manager::SetMaskFileName(), and Impala::Core::VideoJob::Manager::Start(). Referenced by main(). 00015 { 00016 CmdOptions& options = CmdOptions::GetInstance(); 00017 options.Initialise(false, false, true); 00018 String usageStr = "videoSet processDefinition jobServerAddress \n\n"; 00019 options.AddOption(0, "maskFile", "file", "mask.txt"); 00020 options.AddOption(0, "videoUpdate", "", "0"); 00021 options.AddOption(0, "imageWidth", "iWidth", "320"); 00022 if (! options.ParseArgs(argc, argv, usageStr, 3)) 00023 return 1; 00024 00025 ILOG_VAR(Impala.Application.mainVideoJobManager); 00026 00027 String videoSetName = options.GetArg(0); 00028 String processDefinitionFile = options.GetArg(1); 00029 String serverAddr = options.GetArg(2); 00030 int colonPos = serverAddr.find(":"); 00031 if (colonPos <= 0) 00032 { 00033 ILOG_ERROR("Not a valid server address (port number is missing): " << 00034 serverAddr); 00035 return 2; 00036 } 00037 int port = atol(serverAddr.substr(colonPos + 1)); 00038 serverAddr = serverAddr.substr(0, colonPos); 00039 00040 String passwordFile = options.GetString("passwordFile"); 00041 String maskFileName = options.GetString("maskFile", "mask.txt"); 00042 int serverRequestIntervalSec = options.GetInt("requestIntervalSec", 10); 00043 00044 Core::VideoJob::Manager manager(videoSetName, processDefinitionFile, 00045 serverAddr, port, passwordFile, options); 00046 manager.SetMaskFileName(maskFileName); 00047 return manager.Start(serverRequestIntervalSec,options); 00048 }
Here is the call graph for this function:
|