⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timestring.hpp

📁 gps源代码
💻 HPP
字号:
#pragma ident "$Id: TimeString.hpp 316 2006-11-28 22:17:17Z snelsen $"#ifndef GPSTK_TIMESTRING_HPP#define GPSTK_TIMESTRING_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////============================================================================#include "TimeTag.hpp"#include "CommonTime.hpp"namespace gpstk{   std::string printTime( const TimeTag& t,                          const std::string& fmt )      throw( gpstk::StringUtils::StringException );   std::string printTime( const CommonTime& t,                          const std::string& fmt )      throw( gpstk::StringUtils::StringException );         /// Fill the TimeTag object \a btime with time information found in      /// string \a str formatted according to string \a fmt.   void scanTime( TimeTag& btime,                  const std::string& str,                  const std::string& fmt )      throw( gpstk::InvalidRequest,             gpstk::StringUtils::StringException );      void scanTime( CommonTime& t,                  const std::string& str,                  const std::string& fmt )      throw( gpstk::InvalidRequest,             gpstk::StringUtils::StringException );      /** This function is like the other scanTime functions except that       *  it allows mixed time formats.        *  i.e. Year / 10-bit GPS week / seconds-of-week       *  The time formats are filled in the following order: GPS Epoch,       *  year, month, GPS Full Week, GPS 10-bit Week, day-of-week,       *  day-of-month, day-of-year, 29-bit Zcount, 19-bit Zcount, hour,       *  minute, second-of-week, second-of-day, second-of-minute.       *  @note MJD, Julian Date, ANSI time, Unix time, and 32-bit Zcount are       *  treated as stand-alone types and are not mixed with others if       *  detected.       */   void mixedScanTime( CommonTime& t,                       const std::string& str,                       const std::string& fmt )      throw( gpstk::InvalidRequest,             gpstk::StringUtils::StringException );} // namespace#endif // GPSTK_TIMESTRING_HPP

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -