General Purpose Geodetic Library
|
#include <SgDbhFormat.h>
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 SgDbhDataRecordString & | operator= (const SgDbhDataRecordString &rec) |
![]() | |
SgDbhPhysicalRecord () | |
SgDbhPhysicalRecord (const SgDbhPhysicalRecord &) | |
virtual | ~SgDbhPhysicalRecord () |
bool | isOk () const |
int | length () const |
virtual int | writeLR (SgDbhStream &s) const |
virtual SgDbhPhysicalRecord & | operator= (const SgDbhPhysicalRecord &) |
virtual void | reSize (int length) |
virtual char * | base () |
Static Public Member Functions | |
static const QString | className () |
![]() | |
static const QString | className () |
Protected Attributes | |
QString | text_ |
![]() | |
int | length_ |
char * | logicalRecord_ |
bool | isOK_ |
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.
|
inline |
Definition at line 111 of file SgDbhFormat.h.
|
inline |
Definition at line 112 of file SgDbhFormat.h.
|
virtual |
Definition at line 228 of file SgDbhFormat.cpp.
|
static |
Data record: a string. ====================================================================================================
Definition at line 220 of file SgDbhFormat.cpp.
|
inline |
Definition at line 115 of file SgDbhFormat.h.
References text_.
Referenced by SgDbhStartBlock::alternateCode(), SgDbhStartBlock::dbName(), SgDbhStartBlock::dump(), SgDbhHistoryEntry::dump(), SgDbhStartBlock::expDescript(), SgDbhHistoryEntry::getText(), operator=(), SgDbhStartBlock::prevDb(), SgDbhStartBlock::prevDescript(), SgDbhStartBlock::rotateVersion(), and SgDbhStartBlock::sessionID().
|
virtual |
Definition at line 235 of file SgDbhFormat.cpp.
References SgDbhDatumDescriptor::dim1(), SgDbhDatumDescriptor::dim2(), SgDbhPhysicalRecord::logicalRecord_, and SgDbhDatumDescriptor::offset().
|
virtual |
Definition at line 297 of file SgDbhFormat.cpp.
References getText(), SgDbhPhysicalRecord::operator=(), and text_.
|
virtual |
Reimplemented from SgDbhPhysicalRecord.
Definition at line 286 of file SgDbhFormat.cpp.
References SgDbhPhysicalRecord::isOK_, SgDbhPhysicalRecord::logicalRecord_, SgDbhPhysicalRecord::readLR(), and text_.
void SgDbhDataRecordString::setText | ( | const QString & | text | ) |
Definition at line 268 of file SgDbhFormat.cpp.
References SgDbhPhysicalRecord::length(), SgDbhPhysicalRecord::length_, SgDbhPhysicalRecord::logicalRecord_, SgDbhPhysicalRecord::reSize(), and text_.
Referenced by SgDbhStartBlock::alternateCode(), SgDbhStartBlock::rotateVersion(), and SgDbhHistoryEntry::setText().
void SgDbhDataRecordString::setValue | ( | SgDbhDatumDescriptor * | descriptor, |
int | dim2, | ||
int | dim3, | ||
const QString & | str | ||
) |
Definition at line 252 of file SgDbhFormat.cpp.
References SgDbhDatumDescriptor::dim1(), SgDbhDatumDescriptor::dim2(), SgDbhPhysicalRecord::logicalRecord_, and SgDbhDatumDescriptor::offset().
|
protected |
Definition at line 109 of file SgDbhFormat.h.
Referenced by getText(), operator=(), readLR(), and setText().