General Purpose Geodetic Library
SgDbhServiceRecordHS1 Class Reference

#include <SgDbhFormat.h>

Inheritance diagram for SgDbhServiceRecordHS1:
SgDbhServiceRecord SgDbhPhysicalRecord

Public Member Functions

 SgDbhServiceRecordHS1 ()
 
virtual ~SgDbhServiceRecordHS1 ()
 
int getLengthOfHistoryString () const
 
int getVersionNumber () const
 
SgMJD getHistoryEpoch () const
 
void setLengthOfHistoryString (int length)
 
void setVersionNumber (int number)
 
void setHistoryEpoch (const SgMJD &)
 
bool isZ1 () const
 
virtual bool isAltered () const
 
virtual int readLR (SgDbhStream &s)
 
virtual int writeLR (SgDbhStream &s) const
 
virtual QString className () const
 
- Public Member Functions inherited from SgDbhServiceRecord
 SgDbhServiceRecord (const char expectedPrefix[2])
 
 SgDbhServiceRecord (const SgDbhServiceRecord &sr)
 
virtual ~SgDbhServiceRecord ()
 
bool isCorrectPrefix () const
 
bool isPrefixParsed (SgDbhStream &)
 
void setPrefix (const char prefix[2])
 
void setAltered ()
 
SgDbhServiceRecordoperator= (const SgDbhServiceRecord &sr)
 
- Public Member Functions inherited from SgDbhPhysicalRecord
 SgDbhPhysicalRecord ()
 
 SgDbhPhysicalRecord (const SgDbhPhysicalRecord &)
 
virtual ~SgDbhPhysicalRecord ()
 
bool isOk () const
 
int length () const
 
virtual SgDbhPhysicalRecordoperator= (const SgDbhPhysicalRecord &)
 
virtual void reSize (int length)
 
virtual char * base ()
 

Protected Attributes

short lengthOfHistoryString_
 
short epoch_ [5]
 
short versionNumber_
 
- Protected Attributes inherited from SgDbhServiceRecord
char prefix_ [2]
 
char expectedPrefix_ [3]
 
- Protected Attributes inherited from SgDbhPhysicalRecord
int length_
 
char * logicalRecord_
 
bool isOK_
 

Additional Inherited Members

- Static Public Member Functions inherited from SgDbhPhysicalRecord
static const QString className ()
 

Detailed Description

Service record "HS1". ====================================================================================================

Definition at line 211 of file SgDbhFormat.h.

Constructor & Destructor Documentation

◆ SgDbhServiceRecordHS1()

SgDbhServiceRecordHS1::SgDbhServiceRecordHS1 ( )
inline

◆ ~SgDbhServiceRecordHS1()

virtual SgDbhServiceRecordHS1::~SgDbhServiceRecordHS1 ( )
inlinevirtual

Definition at line 217 of file SgDbhFormat.h.

Member Function Documentation

◆ className()

virtual QString SgDbhServiceRecordHS1::className ( ) const
inlinevirtual

Reimplemented from SgDbhServiceRecord.

Definition at line 232 of file SgDbhFormat.h.

◆ getHistoryEpoch()

SgMJD SgDbhServiceRecordHS1::getHistoryEpoch ( ) const
inline

Definition at line 221 of file SgDbhFormat.h.

References epoch_.

Referenced by SgDbhHistoryEntry::dump(), and SgDbhHistoryEntry::getEpoch().

◆ getLengthOfHistoryString()

int SgDbhServiceRecordHS1::getLengthOfHistoryString ( ) const
inline

Definition at line 219 of file SgDbhFormat.h.

References lengthOfHistoryString_.

◆ getVersionNumber()

int SgDbhServiceRecordHS1::getVersionNumber ( ) const
inline

Definition at line 220 of file SgDbhFormat.h.

References versionNumber_.

Referenced by SgDbhHistoryEntry::dump(), and SgDbhHistoryEntry::getVersion().

◆ isAltered()

virtual bool SgDbhServiceRecordHS1::isAltered ( ) const
inlinevirtual

Reimplemented from SgDbhServiceRecord.

Definition at line 229 of file SgDbhFormat.h.

References isZ1().

Referenced by readLR(), and writeLR().

◆ isZ1()

bool SgDbhServiceRecordHS1::isZ1 ( ) const
inline

Definition at line 227 of file SgDbhFormat.h.

References SgDbhServiceRecord::prefix_.

Referenced by isAltered(), and SgDbhHistoryEntry::isLast().

◆ readLR()

int SgDbhServiceRecordHS1::readLR ( SgDbhStream s)
virtual

◆ setHistoryEpoch()

void SgDbhServiceRecordHS1::setHistoryEpoch ( const SgMJD t)

Service record "HS1". ====================================================================================================

Definition at line 481 of file SgDbhFormat.cpp.

References SgMJD::calcDayOfYear(), epoch_, SgMJD::getDate(), SgMJD::getTime(), and SgMJD::MJD_reverse().

Referenced by SgDbhHistoryEntry::setEpoch().

◆ setLengthOfHistoryString()

void SgDbhServiceRecordHS1::setLengthOfHistoryString ( int  length)
inline

Definition at line 223 of file SgDbhFormat.h.

References SgDbhPhysicalRecord::length(), and lengthOfHistoryString_.

Referenced by SgDbhHistoryEntry::setText().

◆ setVersionNumber()

void SgDbhServiceRecordHS1::setVersionNumber ( int  number)
inline

Definition at line 224 of file SgDbhFormat.h.

References versionNumber_.

Referenced by SgDbhHistoryEntry::setVersion().

◆ writeLR()

int SgDbhServiceRecordHS1::writeLR ( SgDbhStream s) const
virtual

Member Data Documentation

◆ epoch_

short SgDbhServiceRecordHS1::epoch_[5]
protected

◆ lengthOfHistoryString_

short SgDbhServiceRecordHS1::lengthOfHistoryString_
protected

◆ versionNumber_

short SgDbhServiceRecordHS1::versionNumber_
protected

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