x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
option.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\program_options\option.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_OPTION_HPP_VP_2004_02_25 #define BOOST_OPTION_HPP_VP_2004_02_25 #include
#include
#include
namespace boost { namespace program_options { /** Option found in input source. Contains a key and a value. The key, in turn, can be a string (name of an option), or an integer (position in input source) -- in case no name is specified. The latter is only possible for command line. The template parameter specifies the type of char used for storing the option's value. */ template
class basic_option { public: basic_option() : position_key(-1), unregistered(false) {} basic_option(const std::string& string_key, const std::vector< std::string> &value) : string_key(string_key), value(value), unregistered(false) {} /** String key of this option. Intentionally independent of the template parameter. */ std::string string_key; /** Position key of this option. All options without an explicit name are sequentially numbered starting from 0. If an option has explicit name, 'position_key' is equal to -1. It is possible that both position_key and string_key is specified, in case name is implicitly added. */ int position_key; /** Option's value */ std::vector< std::basic_string
> value; /** The original unchanged tokens this option was created from. */ std::vector< std::basic_string
> original_tokens; /** True if option was not recognized. In that case, 'string_key' and 'value' are results of purely syntactic parsing of source. The original tokens can be recovered from the "original_tokens" member. */ bool unregistered; }; typedef basic_option
option; typedef basic_option
woption; }} #endif
option.hpp
网页地址
文件地址
上一页
6/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.