General Purpose Geodetic Library
SgDbhDataRecordString Class Reference

#include <SgDbhFormat.h>

Inheritance diagram for SgDbhDataRecordString:
SgDbhPhysicalRecord

Public Member Functions

 SgDbhDataRecordString ()
 
 SgDbhDataRecordString (const SgDbhDataRecordString &rec)
 
virtual ~SgDbhDataRecordString ()
 
const QString & getText () const
 
void setText (const QString &text)
 
virtual QString getValue (SgDbhDatumDescriptor *, int dim2, int dim3)
 
void setValue (SgDbhDatumDescriptor *, int dim2, int dim3, const QString &)
 
virtual int readLR (SgDbhStream &s)
 
virtual SgDbhDataRecordStringoperator= (const SgDbhDataRecordString &rec)
 
- Public Member Functions inherited from SgDbhPhysicalRecord
 SgDbhPhysicalRecord ()
 
 SgDbhPhysicalRecord (const SgDbhPhysicalRecord &)
 
virtual ~SgDbhPhysicalRecord ()
 
bool isOk () const
 
int length () const
 
virtual int writeLR (SgDbhStream &s) const
 
virtual SgDbhPhysicalRecordoperator= (const SgDbhPhysicalRecord &)
 
virtual void reSize (int length)
 
virtual char * base ()
 

Static Public Member Functions

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

Protected Attributes

QString text_
 
- Protected Attributes inherited from SgDbhPhysicalRecord
int length_
 
char * logicalRecord_
 
bool isOK_
 

Detailed Description

Data record: a string. In fact, contains an interface for two types or records. The first one is from the start block, there is just one string and there are no descriptors with dimensions. Here should be used getText()/setText() API. Other type of strings are multidimensional (they are stored in TE blocks), in this case getValue()/setValue() should be called. ====================================================================================================

Definition at line 106 of file SgDbhFormat.h.

Constructor & Destructor Documentation

◆ SgDbhDataRecordString() [1/2]

SgDbhDataRecordString::SgDbhDataRecordString ( )
inline

Definition at line 111 of file SgDbhFormat.h.

◆ SgDbhDataRecordString() [2/2]

SgDbhDataRecordString::SgDbhDataRecordString ( const SgDbhDataRecordString rec)
inline

Definition at line 112 of file SgDbhFormat.h.

◆ ~SgDbhDataRecordString()

SgDbhDataRecordString::~SgDbhDataRecordString ( )
virtual

Definition at line 228 of file SgDbhFormat.cpp.

Member Function Documentation

◆ className()

QString const SgDbhDataRecordString::className ( )
static

Data record: a string. ====================================================================================================

Definition at line 220 of file SgDbhFormat.cpp.

◆ getText()

◆ getValue()

QString SgDbhDataRecordString::getValue ( SgDbhDatumDescriptor descriptor,
int  dim2,
int  dim3 
)
virtual

◆ operator=()

SgDbhDataRecordString & SgDbhDataRecordString::operator= ( const SgDbhDataRecordString rec)
virtual

Definition at line 297 of file SgDbhFormat.cpp.

References getText(), SgDbhPhysicalRecord::operator=(), and text_.

◆ readLR()

int SgDbhDataRecordString::readLR ( SgDbhStream s)
virtual

◆ setText()

◆ setValue()

void SgDbhDataRecordString::setValue ( SgDbhDatumDescriptor descriptor,
int  dim2,
int  dim3,
const QString &  str 
)

Member Data Documentation

◆ text_

QString SgDbhDataRecordString::text_
protected

Definition at line 109 of file SgDbhFormat.h.

Referenced by getText(), operator=(), readLR(), and setText().


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