|
void Impala::CmdOptions::AddOption |
( |
char |
optNameS, |
|
|
const char * |
optNameL, |
|
|
const char * |
parName, |
|
|
const char * |
defVal, |
|
|
const char * |
alternatives = 0 , |
|
|
bool |
defaultFromEnv = false | |
|
) |
| | [inline] |
Definition at line 86 of file CmdOptions.h.
References mOptAlt, mOptDefVal, mOptHideUsage, mOptNameL, mOptNameS, mOptParName, and mOptVal.
Referenced by Impala::Core::VideoSet::InterestPointProc::AddCmdOptions(), Impala::Core::ImageSet::InterestPointProc::AddCmdOptions(), Impala::Core::Feature::InterestPointFeature::AddCmdOptions(), Impala::Core::Feature::AddDSurfOptions(), CheckDynamicOption(), CmdOptions(), Initialise(), Impala::Core::VideoSet::WalkerConfig::InitOptions(), Impala::Application::main(), main(), Impala::Application::mainActiveLearner(), Impala::Application::Client::mainClient(), Impala::Application::mainConstructCodebook(), Impala::Application::mainCrossValidate(), Impala::Application::DemoCamera2d::mainDemoCamera2d(), Impala::Application::IDash::mainIDash(), Impala::Application::IDash::mainIDashServer(), Impala::Application::mainImBrowse(), Impala::Application::mainImSet(), Impala::Application::mainJobRunner(), Impala::Application::mainJobServer(), Impala::Samples::MonetTest::mainMonetTest(), Impala::Application::mainPlay(), Impala::Application::Repository::mainRepository(), Impala::Application::mainServer(), Impala::Application::mainShotSegmentation(), Impala::Application::mainShow(), Impala::Application::mainShowImSet(), Impala::Application::mainShowVidSet(), Impala::Application::Table::mainTable(), Impala::Samples::Talk::mainTalk(), Impala::Application::mainTrainModel(), Impala::Application::mainTrecSearch(), Impala::Application::Util::mainUtil(), Impala::Application::mainVdiff(), Impala::Application::Video::mainVideo(), Impala::Application::VideoExcel::mainVideoExcel(), Impala::Application::mainVideoJobManager(), Impala::Application::VidSet::mainVidSet(), ReadIniFile(), and SetUpOptions(). 00089 {
00090 mOptNameS.push_back(optNameS);
00091 mOptNameL.push_back(String(optNameL));
00092 mOptParName.push_back(parName);
00093 String stringDef(defVal);
00094 if (defaultFromEnv)
00095 {
00096 char* str;
00097 str = getenv(optNameL);
00098 if (str != 0)
00099 stringDef = str;
00100 }
00101 mOptDefVal.push_back(stringDef);
00102 mOptVal.push_back(stringDef);
00103 if (alternatives)
00104 mOptAlt.push_back(alternatives);
00105 else
00106 mOptAlt.push_back("");
00107 mOptHideUsage.push_back(false);
00108 }
|