x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
greg_weekday.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\date_time\gregorian\greg_weekday.hpp
旋转
特效
属性
历史版本
#ifndef GREG_WEEKDAY_HPP___ #define GREG_WEEKDAY_HPP___ /* Copyright (c) 2002,2003 CrystalClear Software, Inc. * Use, modification and distribution is subject to the * Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) * Author: Jeff Garland, Bart Garst * $Date: 2008-02-27 15:00:24 -0500 (Wed, 27 Feb 2008) $ */ #include "boost/date_time/constrained_value.hpp" #include "boost/date_time/date_defs.hpp" #include "boost/date_time/compiler_config.hpp" #include
#include
namespace boost { namespace gregorian { //bring enum values into the namespace using date_time::Sunday; using date_time::Monday; using date_time::Tuesday; using date_time::Wednesday; using date_time::Thursday; using date_time::Friday; using date_time::Saturday; //! Exception that flags that a weekday number is incorrect struct bad_weekday : public std::out_of_range { bad_weekday() : std::out_of_range(std::string("Weekday os out of range 0..6")) {} }; typedef CV::simple_exception_policy
greg_weekday_policies; typedef CV::constrained_value
greg_weekday_rep; //! Represent a day within a week (range 0==Sun to 6==Sat) class BOOST_DATE_TIME_DECL greg_weekday : public greg_weekday_rep { public: typedef boost::date_time::weekdays weekday_enum; greg_weekday(unsigned short day_of_week_num) : greg_weekday_rep(day_of_week_num) {} unsigned short as_number() const {return value_;} const char* as_short_string() const; const char* as_long_string() const; #ifndef BOOST_NO_STD_WSTRING const wchar_t* as_short_wstring() const; const wchar_t* as_long_wstring() const; #endif // BOOST_NO_STD_WSTRING weekday_enum as_enum() const {return static_cast
(value_);} }; } } //namespace gregorian #endif
greg_weekday.hpp
网页地址
文件地址
上一页
13/19
下一页
下载
( 1 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.