General Purpose Geodetic Library
SgVersion Class Reference

#include <SgVersion.h>

Public Types

enum  NameFormat { NF_Human = 0 , NF_Cylon = 1 , NF_Petrov = 2 }
 

Public Member Functions

 SgVersion ()
 
 SgVersion (const QString &, int, int, int, const QString &, const SgMJD &)
 
 SgVersion (const SgVersion &)
 
 ~SgVersion ()
 
const QString & getSoftwareName () const
 
int getMajorNumber () const
 
int getMinorNumber () const
 
int getTeenyNumber () const
 
const QString & getCodeName () const
 
const SgMJDgetReleaseEpoch () const
 
void setSoftwareName (const QString &)
 
void setMajorNumber (int)
 
void setMinorNumber (int)
 
void setTeenyNumber (int)
 
void setCodeName (const QString &)
 
void setReleaseEpoch (const SgMJD &)
 
QString className () const
 
QString toString () const
 
bool parseString (const QString &str)
 
QString name (NameFormat fmt=NF_Human) const
 
SgVersionoperator= (const SgVersion &ver)
 
bool operator== (const SgVersion &) const
 
bool operator!= (const SgVersion &) const
 
bool operator< (const SgVersion &) const
 
bool operator<= (const SgVersion &) const
 
bool operator> (const SgVersion &) const
 
bool operator>= (const SgVersion &) const
 
bool saveIntermediateResults (QDataStream &) const
 
bool loadIntermediateResults (QDataStream &)
 

Protected Attributes

QString softwareName_
 
int majorNumber_
 
int minorNumber_
 
int teenyNumber_
 
QString codeName_
 
SgMJD releaseEpoch_
 

Detailed Description

====================================================================================================

Definition at line 52 of file SgVersion.h.

Member Enumeration Documentation

◆ NameFormat

Enumerator
NF_Human 
NF_Cylon 
NF_Petrov 

Definition at line 55 of file SgVersion.h.

Constructor & Destructor Documentation

◆ SgVersion() [1/3]

SgVersion::SgVersion ( )
inline

A constructor.

Definition at line 200 of file SgVersion.h.

References majorNumber_, minorNumber_, and teenyNumber_.

◆ SgVersion() [2/3]

SgVersion::SgVersion ( const QString &  softwareName,
int  major,
int  minor,
int  teeny,
const QString &  codeName,
const SgMJD epoch 
)
inline

Definition at line 213 of file SgVersion.h.

References majorNumber_, minorNumber_, and teenyNumber_.

◆ SgVersion() [3/3]

SgVersion::SgVersion ( const SgVersion ver)
inline

◆ ~SgVersion()

SgVersion::~SgVersion ( )
inline

A destructor. Frees allocated memory.

Definition at line 240 of file SgVersion.h.

Member Function Documentation

◆ className()

QString SgVersion::className ( ) const
inline

Definition at line 125 of file SgVersion.h.

Referenced by loadIntermediateResults(), and saveIntermediateResults().

◆ getCodeName()

◆ getMajorNumber()

int SgVersion::getMajorNumber ( ) const
inline

Definition at line 262 of file SgVersion.h.

References majorNumber_.

Referenced by SgVersion(), operator=(), saveSettings(), and SgIdentities::setDriverVersion().

◆ getMinorNumber()

int SgVersion::getMinorNumber ( ) const
inline

Definition at line 270 of file SgVersion.h.

References minorNumber_.

Referenced by SgVersion(), operator=(), saveSettings(), and SgIdentities::setDriverVersion().

◆ getReleaseEpoch()

◆ getSoftwareName()

◆ getTeenyNumber()

int SgVersion::getTeenyNumber ( ) const
inline

Definition at line 278 of file SgVersion.h.

References teenyNumber_.

Referenced by SgVersion(), operator=(), saveSettings(), and SgIdentities::setDriverVersion().

◆ loadIntermediateResults()

◆ name()

◆ operator!=()

bool SgVersion::operator!= ( const SgVersion v) const
inline

Definition at line 388 of file SgVersion.h.

◆ operator<()

bool SgVersion::operator< ( const SgVersion v) const
inline

Definition at line 396 of file SgVersion.h.

References majorNumber_, minorNumber_, and teenyNumber_.

◆ operator<=()

bool SgVersion::operator<= ( const SgVersion v) const
inline

Definition at line 406 of file SgVersion.h.

References majorNumber_, minorNumber_, and teenyNumber_.

◆ operator=()

SgVersion & SgVersion::operator= ( const SgVersion ver)
inline

Assign a version to another one.

Parameters
v– a version to copy.

Definition at line 364 of file SgVersion.h.

References codeName_, getCodeName(), getMajorNumber(), getMinorNumber(), getReleaseEpoch(), getSoftwareName(), getTeenyNumber(), majorNumber_, minorNumber_, releaseEpoch_, softwareName_, and teenyNumber_.

◆ operator==()

bool SgVersion::operator== ( const SgVersion v) const
inline

Definition at line 378 of file SgVersion.h.

References codeName_, majorNumber_, minorNumber_, softwareName_, and teenyNumber_.

◆ operator>()

bool SgVersion::operator> ( const SgVersion v) const
inline

Definition at line 416 of file SgVersion.h.

References majorNumber_, minorNumber_, and teenyNumber_.

◆ operator>=()

bool SgVersion::operator>= ( const SgVersion v) const
inline

Definition at line 426 of file SgVersion.h.

References majorNumber_, minorNumber_, and teenyNumber_.

◆ parseString()

bool SgVersion::parseString ( const QString &  str)

◆ saveIntermediateResults()

◆ setCodeName()

void SgVersion::setCodeName ( const QString &  str)
inline

◆ setMajorNumber()

void SgVersion::setMajorNumber ( int  v)
inline

◆ setMinorNumber()

void SgVersion::setMinorNumber ( int  v)
inline

◆ setReleaseEpoch()

void SgVersion::setReleaseEpoch ( const SgMJD t)
inline

◆ setSoftwareName()

void SgVersion::setSoftwareName ( const QString &  name)
inline

◆ setTeenyNumber()

void SgVersion::setTeenyNumber ( int  v)
inline

Definition at line 328 of file SgVersion.h.

References teenyNumber_.

Referenced by checkSettings(), loadIntermediateResults(), and SgIdentities::setDriverVersion().

◆ toString()

Member Data Documentation

◆ codeName_

QString SgVersion::codeName_
protected

◆ majorNumber_

◆ minorNumber_

◆ releaseEpoch_

SgMJD SgVersion::releaseEpoch_
protected

◆ softwareName_

QString SgVersion::softwareName_
protected

◆ teenyNumber_


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