General Purpose Geodetic Library
SgDbhServiceRecord Class Reference

#include <SgDbhFormat.h>

Inheritance diagram for SgDbhServiceRecord:
SgDbhPhysicalRecord SgDbhServiceRecordDe SgDbhServiceRecordDr SgDbhServiceRecordHS1 SgDbhServiceRecordHS2 SgDbhServiceRecordTc SgDbhServiceRecordTe

Public Member Functions

 SgDbhServiceRecord (const char expectedPrefix[2])
 
 SgDbhServiceRecord (const SgDbhServiceRecord &sr)
 
virtual ~SgDbhServiceRecord ()
 
bool isCorrectPrefix () const
 
virtual bool isAltered () const
 
bool isPrefixParsed (SgDbhStream &)
 
void setPrefix (const char prefix[2])
 
void setAltered ()
 
SgDbhServiceRecordoperator= (const SgDbhServiceRecord &sr)
 
virtual int readLR (SgDbhStream &s)
 
virtual int writeLR (SgDbhStream &s) const
 
virtual QString className () const
 
- 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

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

A record. The class is used as an abstract class for other service records. ====================================================================================================

Definition at line 171 of file SgDbhFormat.h.

Constructor & Destructor Documentation

◆ SgDbhServiceRecord() [1/2]

SgDbhServiceRecord::SgDbhServiceRecord ( const char  expectedPrefix[2])
inline

Definition at line 174 of file SgDbhFormat.h.

References expectedPrefix_, and prefix_.

◆ SgDbhServiceRecord() [2/2]

SgDbhServiceRecord::SgDbhServiceRecord ( const SgDbhServiceRecord sr)
inline

Definition at line 177 of file SgDbhFormat.h.

◆ ~SgDbhServiceRecord()

virtual SgDbhServiceRecord::~SgDbhServiceRecord ( )
inlinevirtual

Definition at line 178 of file SgDbhFormat.h.

Member Function Documentation

◆ className()

virtual QString SgDbhServiceRecord::className ( ) const
inlinevirtual

◆ isAltered()

virtual bool SgDbhServiceRecord::isAltered ( ) const
inlinevirtual

Reimplemented in SgDbhServiceRecordDe, SgDbhServiceRecordTc, and SgDbhServiceRecordHS1.

Definition at line 181 of file SgDbhFormat.h.

Referenced by isPrefixParsed().

◆ isCorrectPrefix()

bool SgDbhServiceRecord::isCorrectPrefix ( ) const
inline

Definition at line 179 of file SgDbhFormat.h.

References expectedPrefix_, and prefix_.

Referenced by SgDbhHistoryEntry::isHistoryLine(), and isPrefixParsed().

◆ isPrefixParsed()

bool SgDbhServiceRecord::isPrefixParsed ( SgDbhStream s)

A record. The class is used as an abstract class for other service records. ====================================================================================================

Definition at line 459 of file SgDbhFormat.cpp.

References isAltered(), isCorrectPrefix(), SgDbhPhysicalRecord::isOK_, and prefix_.

Referenced by SgDbhServiceRecordTc::readLR(), SgDbhServiceRecordTe::readLR(), SgDbhServiceRecordDe::readLR(), readLR(), SgDbhServiceRecordHS1::readLR(), SgDbhServiceRecordHS2::readLR(), and SgDbhServiceRecordDr::readLR().

◆ operator=()

◆ readLR()

virtual int SgDbhServiceRecord::readLR ( SgDbhStream s)
inlinevirtual

◆ setAltered()

void SgDbhServiceRecord::setAltered ( )
inline

Definition at line 184 of file SgDbhFormat.h.

References prefix_.

Referenced by SgDbhImage::writeDataRecords().

◆ setPrefix()

void SgDbhServiceRecord::setPrefix ( const char  prefix[2])
inline

Definition at line 183 of file SgDbhFormat.h.

References prefix_.

Referenced by SgDbhHistoryEntry::setEvent(), and SgDbhImage::writeDataRecords().

◆ writeLR()

Member Data Documentation

◆ expectedPrefix_

char SgDbhServiceRecord::expectedPrefix_[3]
protected

Definition at line 196 of file SgDbhFormat.h.

Referenced by SgDbhServiceRecord(), isCorrectPrefix(), and operator=().

◆ prefix_


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