DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
/* Copyright (c) 2002,2003,2005 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 */ #ifndef DATE_TIME_DATE_DST_TRANSITION_DAY_GEN_HPP__ #define DATE_TIME_DATE_DST_TRANSITION_DAY_GEN_HPP__ namespace boost { namespace date_time { //! Defines base interface for calculating start and end date of daylight savings template
class dst_day_calc_rule { public: typedef typename date_type::year_type year_type; virtual ~dst_day_calc_rule() {}; virtual date_type start_day(year_type y) const=0; virtual std::string start_rule_as_string() const=0; virtual date_type end_day(year_type y) const=0; virtual std::string end_rule_as_string() const=0; }; //! Canonical form for a class that provides day rule calculation /*! This class is used to generate specific sets of dst rules * *@param spec Provides a specifiction of the function object types used * to generate start and end days of daylight savings as well * as the date type. */ template
class day_calc_dst_rule : public dst_day_calc_rule
{ public: typedef typename spec::date_type date_type; typedef typename date_type::year_type year_type; typedef typename spec::start_rule start_rule; typedef typename spec::end_rule end_rule; day_calc_dst_rule(start_rule dst_start, end_rule dst_end) : dst_start_(dst_start), dst_end_(dst_end) {} virtual date_type start_day(year_type y) const { return dst_start_.get_date(y); } virtual std::string start_rule_as_string() const { return dst_start_.to_string(); } virtual date_type end_day(year_type y) const { return dst_end_.get_date(y); } virtual std::string end_rule_as_string() const { return dst_end_.to_string(); } private: start_rule dst_start_; end_rule dst_end_; }; } }//namespace #endif
dst_transition_generators.hpp
Page URL
File URL
Prev
23/60
Next
Download
( 2 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.