Public Member Functions | Public Attributes | Protected Member Functions | List of all members
gnsstk::SEMData Class Reference

Detailed Description

This class stores, reads, and writes SEM records.

Warning
The SEM header information and data information don't correctly talk to each other at the time of completion of this file. The current fix is in SEMAlamanacStore.hpp.
See also
tests/SEM for examples
SEMStream.
SEMHeader for information on writing SEM files.

Definition at line 73 of file SEMData.hpp.

#include <SEMData.hpp>

Inheritance diagram for gnsstk::SEMData:
Inheritance graph
[legend]

Public Member Functions

virtual void dump (std::ostream &s) const
 
virtual bool isData () const
 This class is "data" so this function always returns "true". More...
 
 operator AlmOrbit () const
 
 SEMData ()
 Constructor. More...
 
virtual ~SEMData ()
 Destructor. More...
 
- Public Member Functions inherited from gnsstk::SEMBase
virtual ~SEMBase ()
 in deference to our coding standards, this is declared virtual More...
 
- Public Member Functions inherited from gnsstk::FFData
void getRecord (FFStream &s)
 
virtual bool isHeader () const
 
void putRecord (FFStream &s) const
 
virtual ~FFData (void)
 virtual desctuctor More...
 

Public Attributes

FormattedDouble AF0
 sec More...
 
FormattedDouble AF1
 sec/sec More...
 
FormattedDouble Ahalf
 m**0.5 More...
 
FormattedDouble ecc
 no units More...
 
FormattedDouble i_offset
 redians More...
 
double i_total
 radians More...
 
FormattedDouble M0
 radians More...
 
FormattedDouble OMEGA0
 radians More...
 
FormattedDouble OMEGAdot
 redians More...
 
short PRN
 
short satConfig
 
short SV_health
 
short SVNnum
 SVN. More...
 
long Toa
 
short URAnum
 "Avg" URA index over unknown period More...
 
FormattedDouble w
 radians More...
 
short week
 
long xmit_time
 

Protected Member Functions

virtual void reallyGetRecord (FFStream &s)
 
virtual void reallyPutRecord (FFStream &s) const
 

Constructor & Destructor Documentation

◆ SEMData()

gnsstk::SEMData::SEMData ( )

Constructor.

Definition at line 56 of file SEMData.cpp.

◆ ~SEMData()

virtual gnsstk::SEMData::~SEMData ( )
inlinevirtual

Destructor.

Definition at line 81 of file SEMData.hpp.

Member Function Documentation

◆ dump()

void gnsstk::SEMData::dump ( std::ostream &  s) const
virtual

Debug output function. Dump the contents of each of the SEM class to a given ostream s.

Reimplemented from gnsstk::FFData.

Definition at line 212 of file SEMData.cpp.

◆ isData()

virtual bool gnsstk::SEMData::isData ( ) const
inlinevirtual

This class is "data" so this function always returns "true".

Reimplemented from gnsstk::FFData.

Definition at line 113 of file SEMData.hpp.

◆ operator AlmOrbit()

gnsstk::SEMData::operator AlmOrbit ( ) const

cast *this into an AlmOrbit

Returns
the constructed AlmOrbit object

Definition at line 233 of file SEMData.cpp.

◆ reallyGetRecord()

void gnsstk::SEMData::reallyGetRecord ( FFStream s)
protectedvirtual

This functions obtains a SEM almanac record from the given FFStream. If there is an error in reading from the stream, it is reset to its original position and its fail-bit is set.

Exceptions
std::exception
StringExceptionwhen a StringUtils function fails
FFStreamErrorwhen exceptions(failbit) is set and a read or formatting error occurs. This also resets the stream to its pre-read position.

Implements gnsstk::FFData.

Definition at line 109 of file SEMData.cpp.

◆ reallyPutRecord()

void gnsstk::SEMData::reallyPutRecord ( FFStream s) const
protectedvirtual

Writes a correctly formatted record from this data to stream s.

Exceptions
std::exception
FFStreamError
StringUtils::StringException

Implements gnsstk::FFData.

Definition at line 70 of file SEMData.cpp.

Member Data Documentation

◆ AF0

FormattedDouble gnsstk::SEMData::AF0

sec

Definition at line 95 of file SEMData.hpp.

◆ AF1

FormattedDouble gnsstk::SEMData::AF1

sec/sec

Definition at line 96 of file SEMData.hpp.

◆ Ahalf

FormattedDouble gnsstk::SEMData::Ahalf

m**0.5

Definition at line 91 of file SEMData.hpp.

◆ ecc

FormattedDouble gnsstk::SEMData::ecc

no units

Definition at line 87 of file SEMData.hpp.

◆ i_offset

FormattedDouble gnsstk::SEMData::i_offset

redians

Definition at line 88 of file SEMData.hpp.

◆ i_total

double gnsstk::SEMData::i_total

radians

Definition at line 89 of file SEMData.hpp.

◆ M0

FormattedDouble gnsstk::SEMData::M0

radians

Definition at line 94 of file SEMData.hpp.

◆ OMEGA0

FormattedDouble gnsstk::SEMData::OMEGA0

radians

Definition at line 92 of file SEMData.hpp.

◆ OMEGAdot

FormattedDouble gnsstk::SEMData::OMEGAdot

redians

Definition at line 90 of file SEMData.hpp.

◆ PRN

short gnsstk::SEMData::PRN

Definition at line 84 of file SEMData.hpp.

◆ satConfig

short gnsstk::SEMData::satConfig

Definition at line 98 of file SEMData.hpp.

◆ SV_health

short gnsstk::SEMData::SV_health

Definition at line 97 of file SEMData.hpp.

◆ SVNnum

short gnsstk::SEMData::SVNnum

SVN.

Definition at line 85 of file SEMData.hpp.

◆ Toa

long gnsstk::SEMData::Toa

Definition at line 102 of file SEMData.hpp.

◆ URAnum

short gnsstk::SEMData::URAnum

"Avg" URA index over unknown period

Definition at line 86 of file SEMData.hpp.

◆ w

FormattedDouble gnsstk::SEMData::w

radians

Definition at line 93 of file SEMData.hpp.

◆ week

short gnsstk::SEMData::week

Definition at line 103 of file SEMData.hpp.

◆ xmit_time

long gnsstk::SEMData::xmit_time

Definition at line 100 of file SEMData.hpp.


The documentation for this class was generated from the following files:


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:46