首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > 一种基于Boost C++库程序选项在命令行解释器

一种基于Boost C++库程序选项在命令行解释器

资 源 简 介

Clipo : Command Line Interpreter library based on the boost Program Option library The idea is to build on top of the program_option library developed by Vladimir Prus (http://www.boost.org/doc/html/program_options.html) an easy to implement command line interpreter library. Example ``` namespace po = boost::program_options; void handler(const std::vector ¶meters) { for (std::vector::const_iterator it = parameters.begin(); it != parameters.end(); ++it) std::cout << *it << std::endl; } void exit_(unsigned int code = 0) { exit(code); } int main(int argc, char **argv) { boost::cli::commands_description desc; desc.add_options() ("handler", po::value< std::vector >()->notifier(&handler)->multitoken()) ("exit", po::value< unsigned int >()->notifier(&exit_)) ; boost::cli::commandlineinterpreter

文 件 列 表

clipo
test
.svn
command_line_interpreter.hpp
msvc-8.0
VIP VIP
0.193346s