亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? daytime.hpp

?? gps源代碼
?? HPP
?? 第 1 頁 / 共 3 頁
字號:
#pragma ident "$Id: DayTime.hpp 349 2006-12-20 15:04:03Z btolman $"/** * @file DayTime.hpp * gpstk::DayTime - encapsulates date and time-of-day in many formats */#ifndef GPSTK_DAYTIME_HPP#define GPSTK_DAYTIME_HPP//============================================================================////  This file is part of GPSTk, the GPS Toolkit.////  The GPSTk is free software; you can redistribute it and/or modify//  it under the terms of the GNU Lesser General Public License as published//  by the Free Software Foundation; either version 2.1 of the License, or//  any later version.////  The GPSTk is distributed in the hope that it will be useful,//  but WITHOUT ANY WARRANTY; without even the implied warranty of//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the//  GNU Lesser General Public License for more details.////  You should have received a copy of the GNU Lesser General Public//  License along with GPSTk; if not, write to the Free Software Foundation,//  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA//  //  Copyright 2004, The University of Texas at Austin////============================================================================//============================================================================////This software developed by Applied Research Laboratories at the University of//Texas at Austin, under contract to an agency or agencies within the U.S. //Department of Defense. The U.S. Government retains all rights to use,//duplicate, distribute, disclose, or release this software. ////Pursuant to DoD Directive 523024 //// DISTRIBUTION STATEMENT A: This software has been approved for public //                           release, distribution is unlimited.////=============================================================================#include <string>#ifdef _MSC_VER// timeval is defined in winsock.h, which we don't want to include// because it breaks lots of this codestruct timeval {  long    tv_sec;         /* seconds */  long    tv_usec;        /* and microseconds */};#else#include <sys/time.h>#endif#include "MathBase.hpp"#include "Exception.hpp"#include "StringUtils.hpp"#include "GPSZcount.hpp"#include "CommonTime.hpp"namespace gpstk{      /** @defgroup timegroup GPStk Time Group */      //@{      /**       * A time representation class for all common time formats, including       * GPS. There is a seamless conversion between dates, times, and both,       * as well as the ability to input and output the stored day-time in       * formatted strings (printf() and setToString()).       *       * Internally, the representation of day and time uses three quantities,       * (1) jday, an integer representation of Julian Date, specifically       * jday = int(JD+0.5) or jday=int(MJD+2400001). [Recall that JD = MJD +       * 2400000.5 and MJD is an integer when second-of-day==0. N.B. jday is       * NOT == JD or Julian Date, but DayTime::JD() does return JD.]       * (2) mSod, the integer part of milliseconds of the day, and       * (3) mSec, the (double) fractional part of milliseconds of the day.       *       * In addition, the representation includes a tolerance value (see below)       * and a time frame. The time frame is a simple way of denoting the       * origin or type of day-time which is stored in the object. See        * #TimeFrame for the list of possible values. The time frame of an        * object is determined in the call to a constructor (default is        * timeFrame=Unknown), and carried forward into other objects.  It may be       * read or changed using member functions setAllButTimeFrame(),        * setTimeFrame(), and getTimeFrame().       *        * The member datum 'double tolerance' is used in DayTime comparisons.       * It defaults to the value of the static        * gpstk::DayTime::DAYTIME_TOLERANCE, but this can be modified with the        * static method setDayTimeTolerance().  Several different default        * tolerances have been defined and are in the DayTime-Specific        * Definitions section. The tolerance can also be changed on a per object       * basis with the setTolerance() member function.  All comparisons are        * done using the tolerance as a range for the comparison.       * So, for example, operator==() returns true if the times are within       * 'tolerance' seconds. Once set for each object, the tolerance is       * appropriately "carried forward" to new objects through the copy       * operator (DayTime::operator=), the copy constructor, and elsewhere.       *       * The internal representation is manipulated using four fundamental       * routines, two that convert between 'jday' (the integer       * representation of JD) and calendar date: year/month/day-of-month,       * and two that convert between seconds-of-day and hour/minute/second.       * The range of validity of the jday--calendar routines is approximately       * 4317 B.C. to 4317 A.D.; these limits are incorporated into constants       * DayTime::BEGINNING_OF_TIME and DayTime::END_OF_TIME.       *        * * All DayTime objects that lie outside these limits are disallowed. *       *       * This internal representation allows close to the maximum precision       * possible in the time-of-day. Although, note that the code uses        * FACTOR=1000 everywhere to compute milliseconds, via e.g.        * mSec=seconds/FACTOR, and thus FACTOR could be changed to give a        * different precision. (This has not been tested.)       *       * This representation separates day and time-of-day cleanly.       * Because day and time are logically separated, it is possible to use       * DayTime for day only, or for time only. Thus, for example, one       * could instantiate a DayTime object and only manipulate the date,       * without reference to time-of-day; or vice-versa. [However in this       * regard note that the default constructor for DayTime sets the       * data, not to zero, but to the current (system) time; because there       * is no year 0, a DayTime object with all zero data is invalid!]       *       * When constructing DayTime objects from GPS time values -- such as       * GPS week and seconds of weeks, or GPS week and z count -- there        * may be ambiguity associated with the GPS week. Many receivers       * and receiver processing software store the GPS week as it appears       * in the NAV message, as a 10 bit number. This leads to a 1024 week       * ambiguity when 10 bit GPS weeks are used to specify a DayTime.       * In general, DayTime uses the system time to disambiguate which        * 1024 week period to use. This is a good assumption except when       * processing binary data from before GPS week rollover, which       * occured on August 22, 1999.       *       */   class DayTime   {   public:         // ----------- Part  1: exceptions and constants --------------         /**          * @ingroup exceptionclass          * DayTime basic exception class.          */      NEW_EXCEPTION_CLASS(DayTimeException, gpstk::Exception);         /**          * @ingroup exceptionclass          * DayTime formatting ("printing") error exception class.          */      NEW_EXCEPTION_CLASS(FormatException, gpstk::Exception);         /// The various time frames      enum TimeFrame      {         Unknown,    /**< unknown time frame */         UTC,        /**< Coordinated Universal Time (e.g., from NTP) */         LocalSystem,/**< time from a local system clock */         GPS_Tx,     /**< GPS transmit Time (paper clock) (e.g., 15 smooth) */         GPS_Rx,     /**< GPS receive time (paper clock) */            // (e.g., rx data if clock bias is applied)         GPS_SV,     /**< SV time frame (e.g., 211 1.5s/6packs) */         GPS_Receiver/**< Receiver time (e.g., 30s, raw 1.5s) */      };         /**          * @name DayTime-Specific Definitions          * All of these tolerances are 1/2 of the tolerance they specify.          * So one nsec tolerance is actually 1/2 an ns added to the time          * in units of days.          */         //@{         /// time-of-day is stored as long (seconds-of-day)*FACTOR         /// plus double (remaining seconds)/FACTOR      static const long FACTOR;         /// Conversion offset, Julian Date to Modified Julian Date.      static const double JD_TO_MJD;         /// 'Julian day' offset from MJD      static const long MJD_JDAY;         /// 'Julian day' of GPS epoch (Jan. 1, 1980).      static const long GPS_EPOCH_JDAY;         /// Modified Julian Date of GPS epoch (Jan. 1, 1980).      static const long GPS_EPOCH_MJD;         /// Modified Julian Date of UNIX epoch (Jan. 1, 1970).      static const long UNIX_MJD;         /// Seconds per half a GPS week.      static const long HALFWEEK;         /// Seconds per whole GPS week.      static const long FULLWEEK;         /// Seconds per day.      static const long SEC_DAY;         /// Milliseconds in a day.      static const long MS_PER_DAY;         /// One nanosecond tolerance.      static const double ONE_NSEC_TOLERANCE;         /// One microsecond tolerance.      static const double ONE_USEC_TOLERANCE;         /// One millisecond tolerance.      static const double ONE_MSEC_TOLERANCE;         /// One second tolerance.      static const double ONE_SEC_TOLERANCE;         /// One minute tolerance.      static const double ONE_MIN_TOLERANCE;         /// One hour tolerance.      static const double ONE_HOUR_TOLERANCE;               /// Default tolerance for time equality in days.      static double DAYTIME_TOLERANCE;         /// 'julian day' of earliest epoch expressible by DayTime:         /// 1/1/4713 B.C.      static const long BEGIN_LIMIT_JDAY;         /// 'julian day' of latest epoch expressible by DayTime:         /// 1/1/4713 A.D.      static const long END_LIMIT_JDAY;         /// earliest representable DayTime      static const DayTime BEGINNING_OF_TIME;         /// latest representable DayTime      static const DayTime END_OF_TIME;         /// If true, check the validity of inputs.          /// Throw DayTimeException on failure.      static bool DAYTIME_TEST_VALID;         //@}               // ----------- Part  2: member functions: tolerance ------------         //         /// Changes the DAYTIME_TOLERANCE for all DayTime objects      static double setDayTimeTolerance(const double tol)         throw()      { DAYTIME_TOLERANCE = tol; return DAYTIME_TOLERANCE; }         /// Returns the current DAYTIME_TOLERANCE.      static double getDayTimeTolerance()          throw()      { return DAYTIME_TOLERANCE; }            /**          * Sets the tolerance for output and comparisons on this object only.          * See the constants in this file (e.g. ONE_NSEC_TOLERANCE)          * for some easy to use tolerance values.          * @param tol Tolerance in days to be used by comparison operators.          * @sa DayTime-Specific Definitions          */      DayTime& setTolerance(const double tol) throw();         /**           * Return the tolerance value currently in use by this object.          * @return the current tolerance value (in seconds, of course)          */      double getTolerance() throw()      { return tolerance; }         // ----------- Part  3: member functions: constructors ------------         //         /**          * Default constructor.          * Initializes to current system time.          */      DayTime()         throw(DayTimeException);         /**          * GPS time with full week constructor.          * @param GPSWeek full week number          * @param GPSSecond seconds of week.          * @param f Time frame (see #TimeFrame)          */      DayTime(short GPSWeek,              double GPSSecond,              TimeFrame f = Unknown)         throw(DayTimeException);         /**          * GPS time constructor. In the case of 10-bit week input,          * the year and week are used to deduce the number of GPS          * week rollovers and thus the full GPS week.          * @param GPSWeek week number.          * @param GPSSecond Seconds of week.          * @param year Four-digit year consistent with GPS input.          * @param f Time frame (see #TimeFrame)          */      DayTime(short GPSWeek,              double GPSSecond,              short year,               TimeFrame f = Unknown)         throw(DayTimeException);         /**          * GPS time constructor. In the case of 10-bit week input,          * the year and week are used to deduce the number of GPS          * week rollovers and thus the full GPS week.          * @param GPSWeek GPS week number.          * @param zcount Z-count (seconds of week / 1.5)          * @param year Four-digit year consistent with GPS input.          * @param f Time frame (see #TimeFrame)          */      DayTime(short GPSWeek,               long zcount,              short year,              TimeFrame f = Unknown)         throw(DayTimeException);         /**          * GPS time constructor given the full Z count.          * @warn The number of GPS week rollovers, and therefore the          * full GPS week, is determined from the current system time.          * @param fullZcount Full z-count (3 MSB unused, mid 10 bits -          *   week number, 19 LSB "normal" z-count).          * @param f Time frame (see #TimeFrame)          */      DayTime(unsigned long fullZcount,               TimeFrame f = Unknown)         throw(DayTimeException);         /**          * GPS Zcount constructor.          * @warn The number of GPS week rollovers, and therefore the          * full GPS week, is determined from the current system time.          * @param z GPSZcount object to set to          * @param f Time frame (see #TimeFrame)          */      DayTime(const GPSZcount& z,              TimeFrame f = Unknown)         throw(DayTimeException);         /**          * CommonTime constructor.          * @param c CommonTime object to set to          * @param f Time frame (see #TimeFrame)          */      DayTime(const CommonTime& c,              TimeFrame f = Unknown)         throw(DayTimeException);         /**          * Calendar time constructor.          * @param year four-digit year.          * @param month month of year (1-based).          * @param day day of month (1-based).          * @param hour hour of day.          * @param minute minutes of hour.          * @param second seconds of minute.          * @param f Time frame (see #TimeFrame)          */      DayTime(short year,              short month,              short day,              short hour,              short minute,              double second,              TimeFrame f = Unknown)         throw(DayTimeException);         /**          * Modified Julian date time constructor.          * @warn For some compilers, this result may have diminished accuracy.          * @param MJD Modified Julian date as long double.          * @param f Time frame (see #TimeFrame)          */      DayTime(long double MJD,               TimeFrame f = Unknown)         throw(DayTimeException);         /**          * Modified Julian date time constructor.          * @warn For some compilers, this result may have diminished accuracy.          * @param MJD Modified Julian date as double.          * @param f Time frame (see #TimeFrame)          */      DayTime(double MJD,               TimeFrame f = Unknown)         throw(DayTimeException);         /**          * Day of year time constructor.          * @param year Four-digit year.          * @param DOY Day of year.          * @param SOD Seconds of day.          * @param f Time frame (see #TimeFrame)          */      DayTime(short year,              short doy,              double sod,               TimeFrame f = Unknown)         throw(DayTimeException);         /**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美高清在线| 精品国产91九色蝌蚪| 欧美一级二级三级乱码| 久久久久久久久久美女| 一区二区三区**美女毛片| 蜜臀91精品一区二区三区| 成人h动漫精品一区二区| 91精品国产综合久久久久久| 国产精品乱子久久久久| 青娱乐精品在线视频| 91麻豆高清视频| 久久综合久久鬼色| 日日夜夜免费精品| 9人人澡人人爽人人精品| 精品久久久久久久人人人人传媒| 亚洲精品国久久99热| 懂色av一区二区三区免费观看| 欧美精品18+| ...xxx性欧美| 成人一区二区在线观看| 欧美精品一区二区三区在线| 亚洲大片一区二区三区| 欧洲日韩一区二区三区| 中文字幕在线观看一区| 国产成人av电影在线播放| 日韩免费高清视频| 午夜伦理一区二区| 在线观看日韩一区| 夜夜嗨av一区二区三区网页| 91蜜桃视频在线| 亚洲欧美国产毛片在线| 91影视在线播放| 亚洲精品日产精品乱码不卡| av中文字幕一区| 国产精品麻豆网站| 99久久免费视频.com| 中文字幕在线观看一区| 91亚洲国产成人精品一区二区三| 国产精品色呦呦| av在线不卡观看免费观看| 成人欧美一区二区三区1314| 粉嫩欧美一区二区三区高清影视| 欧美激情综合网| 91在线观看污| 亚洲午夜在线视频| 欧美绝品在线观看成人午夜影视| 午夜精品免费在线| 日韩免费视频一区二区| 国产精品一区二区你懂的| 中文一区二区完整视频在线观看 | 一区二区三区电影在线播| 91在线国产观看| 亚洲 欧美综合在线网络| 欧美一区二区三区四区久久| 麻豆精品视频在线| 亚洲国产精品精华液2区45| 色综合天天狠狠| 日本系列欧美系列| 国产日韩影视精品| 99久久99久久免费精品蜜臀| 亚洲一区中文日韩| 日韩久久久精品| 成人sese在线| 日本大胆欧美人术艺术动态 | 日韩一区欧美小说| 欧美日韩中文字幕一区二区| 免费观看在线综合| 中文字幕中文乱码欧美一区二区| 日本高清不卡视频| 精品在线一区二区三区| 欧美激情中文字幕| 在线成人午夜影院| 不卡一区在线观看| 五月天中文字幕一区二区| 久久蜜桃一区二区| 欧美在线高清视频| 国产东北露脸精品视频| 亚洲成人一区在线| 国产精品色婷婷久久58| 欧美妇女性影城| 99视频精品在线| 九九九精品视频| 亚洲成va人在线观看| 国产精品三级在线观看| 91精品国产综合久久久久| 91亚洲精品久久久蜜桃| 国产一区二区美女| 日韩精品电影在线| 亚洲女厕所小便bbb| 久久婷婷国产综合精品青草| 欧美天天综合网| 成人av在线电影| 激情六月婷婷综合| 日韩激情在线观看| 一区二区三区电影在线播| 国产欧美精品一区二区色综合| 91精品在线免费观看| 91福利视频久久久久| av不卡在线播放| 国产美女一区二区三区| 麻豆精品新av中文字幕| 午夜激情一区二区三区| 玉米视频成人免费看| 国产精品久久久久毛片软件| 久久综合久久综合亚洲| 日韩午夜av一区| 91精品在线免费| 欧美一区二区精品在线| 欧美丰满少妇xxxxx高潮对白| 91国产成人在线| 在线免费观看视频一区| 色呦呦一区二区三区| av在线免费不卡| 91香蕉视频在线| 91丨九色丨尤物| 色综合天天做天天爱| 色综合视频一区二区三区高清| 成人黄色免费短视频| av在线不卡免费看| 91免费观看国产| 欧美影院午夜播放| 欧美色综合影院| 欧美日韩国产不卡| 欧美一卡二卡在线| 日韩三级.com| xfplay精品久久| 欧美高清一级片在线观看| 国产精品狼人久久影院观看方式| 国产精品色婷婷| 亚洲女厕所小便bbb| 亚洲主播在线播放| 日日摸夜夜添夜夜添国产精品| 午夜精品成人在线视频| 久久成人免费网| 国产福利一区二区三区| 波多野结衣在线一区| 色综合色狠狠天天综合色| 欧美日韩一级片在线观看| 日韩三级电影网址| 国产日韩精品一区| 自拍偷拍亚洲激情| 午夜精品国产更新| 精品一区二区免费| 成人国产精品免费观看视频| 91色porny蝌蚪| 欧美日本韩国一区二区三区视频| 日韩一区二区三区三四区视频在线观看 | 日本一区二区综合亚洲| 亚洲欧洲精品天堂一级| 亚洲国产色一区| 久久99国产精品尤物| 99综合电影在线视频| 欧美日韩在线播放一区| 日韩免费观看高清完整版| 国产精品久久三区| 香蕉成人啪国产精品视频综合网| 蜜桃视频免费观看一区| 成人开心网精品视频| 欧美精品日日鲁夜夜添| 国产亚洲综合av| 亚洲香肠在线观看| 国产精品一区二区x88av| 在线免费观看日韩欧美| 精品乱人伦小说| 亚洲日本乱码在线观看| 麻豆视频一区二区| 99综合电影在线视频| 日韩欧美国产电影| 亚洲免费大片在线观看| 久久99精品国产.久久久久久 | 亚洲人成7777| 日本亚洲三级在线| 一本色道久久综合亚洲aⅴ蜜桃| 欧美r级在线观看| 亚洲一区二区高清| 成人一区二区视频| 欧美不卡一区二区三区| 亚洲午夜免费视频| 波多野结衣中文字幕一区二区三区| 91精品国产色综合久久不卡电影 | 不卡一二三区首页| 亚洲精品一线二线三线| 亚洲va中文字幕| 色综合久久久久综合体| 中文字幕av免费专区久久| 狠狠色丁香婷综合久久| 777亚洲妇女| 亚洲高清免费在线| 99久久国产免费看| 国产日韩av一区二区| 国产一区二区三区免费在线观看| 911精品国产一区二区在线| 亚洲欧美激情插| 91在线观看免费视频| 中文字幕在线一区免费| 国产成人精品三级麻豆| 国产亚洲欧洲997久久综合| 精品亚洲成a人| 精品国产乱码久久久久久久| 日韩黄色免费网站|