General Purpose Geodetic Library
SgDbhStartBlock Class Reference

#include <SgDbhFormat.h>

Public Member Functions

 SgDbhStartBlock ()
 
 ~SgDbhStartBlock ()
 
bool isOk () const
 
SgMJD epoch () const
 
int version () const
 
const QString & dbName () const
 
const QString & expDescript () const
 
const QString & sessionID () const
 
const QString & prevDb () const
 
const QString & prevDescript () const
 
void rotateVersion (int newVersion, const QString &newFileName)
 
void dump (QTextStream &) const
 
QString className () const
 
void alternateCode (const QString &)
 

Protected Attributes

SgDbhDataRecordString dbNameRec_
 
SgDbhDataRecordString expDescriptRec_
 
SgDbhDataRecordString sessIDRec_
 
SgDbhDataRecordString prevDbRec_
 
SgDbhDataRecordString prevRec_
 
SgDbhDataRecord< short > epochRec_
 
SgDbhDataRecord< short > versionRec_
 
bool isOK_
 
short epoch_ [5]
 

Friends

SgDbhStreamoperator>> (SgDbhStream &, SgDbhStartBlock &)
 
SgDbhStreamoperator<< (SgDbhStream &, const SgDbhStartBlock &)
 

Detailed Description

First Block. ====================================================================================================

Definition at line 444 of file SgDbhFormat.h.

Constructor & Destructor Documentation

◆ SgDbhStartBlock()

SgDbhStartBlock::SgDbhStartBlock ( )

First Block. ====================================================================================================

Definition at line 906 of file SgDbhFormat.cpp.

References epoch_, and isOK_.

◆ ~SgDbhStartBlock()

SgDbhStartBlock::~SgDbhStartBlock ( )
inline

Definition at line 458 of file SgDbhFormat.h.

Member Function Documentation

◆ alternateCode()

void SgDbhStartBlock::alternateCode ( const QString &  code)

◆ className()

QString SgDbhStartBlock::className ( ) const
inline

Definition at line 469 of file SgDbhFormat.h.

◆ dbName()

const QString& SgDbhStartBlock::dbName ( ) const
inline

◆ dump()

void SgDbhStartBlock::dump ( QTextStream &  s) const

◆ epoch()

SgMJD SgDbhStartBlock::epoch ( ) const
inline

Definition at line 460 of file SgDbhFormat.h.

References epoch_.

Referenced by dump(), and SgDbhImage::fileCreationEpoch().

◆ expDescript()

const QString& SgDbhStartBlock::expDescript ( ) const
inline

Definition at line 463 of file SgDbhFormat.h.

References expDescriptRec_, and SgDbhDataRecordString::getText().

Referenced by dump(), and SgDbhImage::sessionDescription().

◆ isOk()

bool SgDbhStartBlock::isOk ( ) const
inline

Definition at line 459 of file SgDbhFormat.h.

References isOK_.

◆ prevDb()

const QString& SgDbhStartBlock::prevDb ( ) const
inline

Definition at line 465 of file SgDbhFormat.h.

References SgDbhDataRecordString::getText(), and prevDbRec_.

Referenced by dump(), and SgDbhImage::previousFileName().

◆ prevDescript()

const QString& SgDbhStartBlock::prevDescript ( ) const
inline

Definition at line 466 of file SgDbhFormat.h.

References SgDbhDataRecordString::getText(), and prevRec_.

Referenced by dump(), and SgDbhImage::previousFileDescription().

◆ rotateVersion()

void SgDbhStartBlock::rotateVersion ( int  newVersion,
const QString &  newFileName 
)

◆ sessionID()

const QString& SgDbhStartBlock::sessionID ( ) const
inline

Definition at line 464 of file SgDbhFormat.h.

References SgDbhDataRecordString::getText(), and sessIDRec_.

Referenced by dump(), and SgDbhImage::sessionID().

◆ version()

int SgDbhStartBlock::version ( ) const
inline

Definition at line 461 of file SgDbhFormat.h.

References SgDbhDataRecord< C >::at(), and versionRec_.

Referenced by dump(), and SgDbhImage::fileVersion().

Friends And Related Function Documentation

◆ operator<<

SgDbhStream& operator<< ( SgDbhStream s,
const SgDbhStartBlock block 
)
friend

Definition at line 1002 of file SgDbhFormat.cpp.

◆ operator>>

SgDbhStream& operator>> ( SgDbhStream s,
SgDbhStartBlock block 
)
friend

Definition at line 982 of file SgDbhFormat.cpp.

Member Data Documentation

◆ dbNameRec_

SgDbhDataRecordString SgDbhStartBlock::dbNameRec_
protected

Definition at line 447 of file SgDbhFormat.h.

Referenced by alternateCode(), dbName(), dump(), and rotateVersion().

◆ epoch_

short SgDbhStartBlock::epoch_[5]
protected

Definition at line 455 of file SgDbhFormat.h.

Referenced by SgDbhStartBlock(), dump(), and epoch().

◆ epochRec_

SgDbhDataRecord<short> SgDbhStartBlock::epochRec_
protected

Definition at line 452 of file SgDbhFormat.h.

◆ expDescriptRec_

SgDbhDataRecordString SgDbhStartBlock::expDescriptRec_
protected

Definition at line 448 of file SgDbhFormat.h.

Referenced by expDescript().

◆ isOK_

bool SgDbhStartBlock::isOK_
protected

Definition at line 454 of file SgDbhFormat.h.

Referenced by SgDbhStartBlock(), and isOk().

◆ prevDbRec_

SgDbhDataRecordString SgDbhStartBlock::prevDbRec_
protected

Definition at line 450 of file SgDbhFormat.h.

Referenced by alternateCode(), prevDb(), and rotateVersion().

◆ prevRec_

SgDbhDataRecordString SgDbhStartBlock::prevRec_
protected

Definition at line 451 of file SgDbhFormat.h.

Referenced by alternateCode(), prevDescript(), and rotateVersion().

◆ sessIDRec_

SgDbhDataRecordString SgDbhStartBlock::sessIDRec_
protected

Definition at line 449 of file SgDbhFormat.h.

Referenced by alternateCode(), and sessionID().

◆ versionRec_

SgDbhDataRecord<short> SgDbhStartBlock::versionRec_
protected

Definition at line 453 of file SgDbhFormat.h.

Referenced by rotateVersion(), and version().


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