本文整理汇总了C++中CmdLineParser::addIntOption方法的典型用法代码示例。如果您正苦于以下问题:C++ CmdLineParser::addIntOption方法的具体用法?C++ CmdLineParser::addIntOption怎么用?C++ CmdLineParser::addIntOption使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CmdLineParser
的用法示例。
在下文中一共展示了CmdLineParser::addIntOption方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CmdLineParser
CmdLineParser * SeekerCmdLineParser::createCmdLineParser()
{
CmdLineParser * parser = new CmdLineParser();
parser->addIntOption(dxPortArg, SseUtil::strToInt(DEFAULT_DX_PORT),
"port for dx connections");
parser->addIntOption(zxPortArg, SseUtil::strToInt(DEFAULT_ZX_PORT),
"port for zx connections");
parser->addIntOption(ifcPortArg, SseUtil::strToInt(DEFAULT_IFC_PORT),
"port for ifc connections");
parser->addIntOption(tsigPortArg, SseUtil::strToInt(DEFAULT_TSIG_PORT),
"port for tsig connections");
parser->addIntOption(tscopePortArg, SseUtil::strToInt(DEFAULT_TSCOPE_PORT),
"port for tscope connections");
parser->addIntOption(channelizerPortArg,
SseUtil::strToInt(DEFAULT_CHANNELIZER_PORT),
"port for channelizer connections");
parser->addIntOption(dxArchiverPortArg,
SseUtil::strToInt(DEFAULT_DX_ARCHIVER_TO_SSE_PORT),
"port for dx archiver connections");
parser->addStringOption(dxArchiver1HostnameArg,
DEFAULT_DX_ARCHIVER1_HOSTNAME,
"dx archiver1 hostname");
parser->addIntOption(dxToArchiver1PortArg,
SseUtil::strToInt(DEFAULT_DX_TO_DX_ARCHIVER1_PORT),
"port for dx connections to archiver1");
parser->addStringOption(dxArchiver2HostnameArg, DEFAULT_DX_ARCHIVER2_HOSTNAME,
"dx archiver2 hostname");
parser->addIntOption(dxToArchiver2PortArg,
SseUtil::strToInt(DEFAULT_DX_TO_DX_ARCHIVER2_PORT),
"port for dx connections to archiver2");
parser->addStringOption(dxArchiver3HostnameArg, DEFAULT_DX_ARCHIVER3_HOSTNAME,
"dx archiver3 hostname");
parser->addIntOption(dxToArchiver3PortArg,
SseUtil::strToInt(DEFAULT_DX_TO_DX_ARCHIVER3_PORT),
"port for dx connections to archiver3");
parser->addStringOption(expectedComponentsFilenameArg,
DEFAULT_EXPECTED_COMPONENTS_FILENAME,
"expected NSS components configuration filename");
parser->addIntOption(componentControlPortArg,
SseUtil::strToInt(DEFAULT_COMPONENT_CONTROL_PORT),
"port for component control connections");
parser->addFlagOption(noUiArg,"disable user interface (server mode)");
return parser;
}