mscheader.hpp
来自「一个gps小工具包」· HPP 代码 · 共 88 行
HPP
88 行
#pragma ident "$Id: MSCHeader.hpp 897 2007-11-15 05:18:56Z ocibu $"
//============================================================================
//
// 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
//
//============================================================================
/**
* @file MSCHeader.hpp
* Encapsulate MSC header, including I/O
*/
#ifndef MSCHeader_HPP
#define MSCHeader_HPP
#include <vector>
#include <list>
#include <map>
#include "FFStream.hpp"
#include "MSCBase.hpp"
#include "StringUtils.hpp"
namespace gpstk
{
/** @addtogroup MSC */
//@{
/**
* This class does not really do anything. It is here to conform to the
* other file types, even though the MSC file type
* does not have any header information.
*
* @sa tests/MSC for examples
* @sa MSCStream.
* @sa MSCData for more information on reading MSC files.
*/
class MSCHeader : public MSCBase
{
public:
/// Constructor.
MSCHeader() {}
/// Destructor
virtual ~MSCHeader() {}
virtual void dump(std::ostream& s) const {};
//! This class is a "header" so this function always returns "true".
virtual bool isHeader() const {return true;}
protected:
virtual void reallyPutRecord(FFStream& s) const
throw(std::exception, FFStreamError,
gpstk::StringUtils::StringException)
{}
virtual void reallyGetRecord(FFStream& s)
throw(std::exception, FFStreamError,
gpstk::StringUtils::StringException)
{}
}; // class MSCHeader
//@}
} // namespace
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?