x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
positional_options.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\program_options\positional_options.hpp
旋转
特效
属性
历史版本
// Copyright Vladimir Prus 2004. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt // or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_PROGRAM_OPTIONS_POSITIONAL_OPTIONS_VP_2004_03_02 #define BOOST_PROGRAM_OPTIONS_POSITIONAL_OPTIONS_VP_2004_03_02 #include
#include
#include
namespace boost { namespace program_options { /** Describes positional options. The class allows to guess option names for positional options, which are specified on the command line and are identified by the position. The class uses the information provided by the user to associate a name with every positional option, or tell that no name is known. The primary assumption is that only the relative order of the positional options themselves matters, and that any interleaving ordinary options don't affect interpretation of positional options. The user initializes the class by specifying that first N positional options should be given the name X1, following M options should be given the name X2 and so on. */ class BOOST_PROGRAM_OPTIONS_DECL positional_options_description { public: positional_options_description(); /** Species that up to 'max_count' next positional options should be given the 'name'. The value of '-1' means 'unlimited'. No calls to 'add' can be made after call with 'max_value' equal to '-1'. */ positional_options_description& add(const char* name, int max_count); /** Returns the maximum number of positional options that can be present. Can return numeric_limits
::max() to indicate unlimited number. */ unsigned max_total_count() const; /** Returns the name that should be associated with positional options at 'position'. Precondition: position < max_total_count() */ const std::string& name_for_position(unsigned position) const; private: // List of names corresponding to the positions. If the number of // positions is unlimited, then the last name is stored in // m_trailing; std::vector
m_names; std::string m_trailing; }; }} #endif
positional_options.hpp
网页地址
文件地址
上一页
9/12
下一页
下载
( 2 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.