General Purpose Geodetic Library
|
#include <SgMasterRecord.h>
Public Types | |
enum | MasterFileVersion { MFV_UNDEF = 0 , MFV_V01 = 1 , MFV_V02 = 2 } |
Public Member Functions | |
SgMasterRecord () | |
~SgMasterRecord () | |
SgMasterRecord & | operator= (const SgMasterRecord &r) |
bool | isValid () const |
const QString & | getName () const |
const QString & | getType () const |
const QString & | getCode () const |
const QString & | getDate () const |
const QString & | getStations () const |
const QString & | getDbcCode () const |
const QString & | getScheduledBy () const |
const QString & | getCorrelatedBy () const |
const QString & | getSubmittedBy () const |
MasterFileVersion | mfVersion () const |
void | setName (const QString &s) |
void | setType (const QString &s) |
void | setCode (const QString &s) |
void | setDate (const QString &s) |
void | setStations (const QString &s) |
void | setDbcCode (const QString &s) |
void | setScheduledBy (const QString &s) |
void | setCorrelatedBy (const QString &s) |
void | setSubmittedBy (const QString &s) |
bool | lookupRecordByName (const QString &nickName, const QString &path) |
bool | lookupRecordByCode (const QString &sessionCode, const QString &sYear, const QString &path) |
void | parseString_v1 (const QString &) |
void | parseString_v2 (const QString &) |
Static Public Member Functions | |
static const QString | className () |
Private Member Functions | |
bool | findRecordByName (const QString &date, const QString &dbcCode, const QString &fileName) |
bool | findRecordByCode (const QString &sessionCode, const QString &fileName) |
Private Attributes | |
bool | isValid_ |
QString | name_ |
QString | type_ |
QString | code_ |
QString | date_ |
QString | stations_ |
QString | dbcCode_ |
QString | scheduledBy_ |
QString | correlatedBy_ |
QString | submittedBy_ |
MasterFileVersion | mfVersion_ |
====================================================================================================
Definition at line 49 of file SgMasterRecord.h.
Enumerator | |
---|---|
MFV_UNDEF | |
MFV_V01 | |
MFV_V02 |
Definition at line 52 of file SgMasterRecord.h.
|
inline |
A constructor. Creates an object.
Definition at line 182 of file SgMasterRecord.h.
References isValid_, MFV_UNDEF, and mfVersion_.
|
inline |
A destructor. Frees allocated memory.
Definition at line 200 of file SgMasterRecord.h.
|
static |
Returns name of the class (for debug output).
Definition at line 45 of file SgMasterRecord.cpp.
Referenced by findRecordByCode(), findRecordByName(), lookupRecordByCode(), and lookupRecordByName().
|
private |
Definition at line 275 of file SgMasterRecord.cpp.
References className(), SgLogger::DBG, SgLogger::ERR, getCode(), SgLogger::IO_TXT, logger, MFV_UNDEF, MFV_V01, mfVersion_, parseString_v1(), parseString_v2(), and SgLogger::write().
Referenced by lookupRecordByCode().
|
private |
Definition at line 185 of file SgMasterRecord.cpp.
References className(), SgLogger::DBG, SgLogger::ERR, getCode(), getDate(), getDbcCode(), SgLogger::IO_TXT, logger, MFV_UNDEF, MFV_V01, mfVersion_, parseString_v1(), parseString_v2(), and SgLogger::write().
Referenced by lookupRecordByName().
|
inline |
Definition at line 235 of file SgMasterRecord.h.
References code_.
Referenced by findRecordByCode(), findRecordByName(), and SgVlbiSession::selfCheck().
|
inline |
Definition at line 275 of file SgMasterRecord.h.
References correlatedBy_.
Referenced by SgVlbiSession::selfCheck().
|
inline |
Definition at line 243 of file SgMasterRecord.h.
References date_.
Referenced by findRecordByName(), and SgVlbiSession::selfCheck().
|
inline |
Definition at line 259 of file SgMasterRecord.h.
References dbcCode_.
Referenced by findRecordByName(), and SgVlbiSession::selfCheck().
|
inline |
Definition at line 219 of file SgMasterRecord.h.
References name_.
Referenced by SgVlbiSession::selfCheck().
|
inline |
Definition at line 267 of file SgMasterRecord.h.
References scheduledBy_.
Referenced by SgVlbiSession::selfCheck().
|
inline |
Definition at line 251 of file SgMasterRecord.h.
References stations_.
|
inline |
Definition at line 283 of file SgMasterRecord.h.
References submittedBy_.
Referenced by SgVlbiSession::selfCheck().
|
inline |
Definition at line 227 of file SgMasterRecord.h.
References type_.
Referenced by SgVlbiSession::selfCheck().
|
inline |
Definition at line 211 of file SgMasterRecord.h.
References isValid_.
bool SgMasterRecord::lookupRecordByCode | ( | const QString & | sessionCode, |
const QString & | sYear, | ||
const QString & | path | ||
) |
Definition at line 248 of file SgMasterRecord.cpp.
References className(), findRecordByCode(), SgLogger::IO_TXT, logger, MFV_V01, MFV_V02, mfVersion_, SgLogger::write(), and SgLogger::WRN.
Referenced by SgVlbiSession::selfCheck().
bool SgMasterRecord::lookupRecordByName | ( | const QString & | nickName, |
const QString & | path | ||
) |
Definition at line 137 of file SgMasterRecord.cpp.
References className(), SgLogger::ERR, findRecordByName(), SgLogger::IO, SgLogger::IO_TXT, logger, MFV_V01, MFV_V02, mfVersion_, SgLogger::write(), and SgLogger::WRN.
Referenced by SgVlbiSession::selfCheck().
|
inline |
Definition at line 106 of file SgMasterRecord.h.
References mfVersion_.
SgMasterRecord & SgMasterRecord::operator= | ( | const SgMasterRecord & | r | ) |
An assignment operator.
Definition at line 53 of file SgMasterRecord.cpp.
References code_, correlatedBy_, date_, dbcCode_, isValid_, name_, scheduledBy_, stations_, submittedBy_, and type_.
void SgMasterRecord::parseString_v1 | ( | const QString & | str | ) |
Definition at line 71 of file SgMasterRecord.cpp.
References code_, correlatedBy_, date_, dbcCode_, isValid_, name_, scheduledBy_, stations_, and submittedBy_.
Referenced by findRecordByCode(), and findRecordByName().
void SgMasterRecord::parseString_v2 | ( | const QString & | str | ) |
Definition at line 99 of file SgMasterRecord.cpp.
References code_, correlatedBy_, date_, dbcCode_, isValid_, name_, scheduledBy_, stations_, submittedBy_, and type_.
Referenced by findRecordByCode(), and findRecordByName().
|
inline |
Definition at line 307 of file SgMasterRecord.h.
References code_.
|
inline |
Definition at line 347 of file SgMasterRecord.h.
References correlatedBy_.
|
inline |
Definition at line 315 of file SgMasterRecord.h.
References date_.
|
inline |
Definition at line 331 of file SgMasterRecord.h.
References dbcCode_.
|
inline |
Definition at line 291 of file SgMasterRecord.h.
References name_.
|
inline |
Definition at line 339 of file SgMasterRecord.h.
References scheduledBy_.
|
inline |
Definition at line 323 of file SgMasterRecord.h.
References stations_.
|
inline |
Definition at line 355 of file SgMasterRecord.h.
References submittedBy_.
|
inline |
Definition at line 299 of file SgMasterRecord.h.
References type_.
|
private |
Definition at line 153 of file SgMasterRecord.h.
Referenced by getCode(), operator=(), parseString_v1(), parseString_v2(), and setCode().
|
private |
Definition at line 158 of file SgMasterRecord.h.
Referenced by getCorrelatedBy(), operator=(), parseString_v1(), parseString_v2(), and setCorrelatedBy().
|
private |
Definition at line 154 of file SgMasterRecord.h.
Referenced by getDate(), operator=(), parseString_v1(), parseString_v2(), and setDate().
|
private |
Definition at line 156 of file SgMasterRecord.h.
Referenced by getDbcCode(), operator=(), parseString_v1(), parseString_v2(), and setDbcCode().
|
private |
Definition at line 149 of file SgMasterRecord.h.
Referenced by SgMasterRecord(), isValid(), operator=(), parseString_v1(), and parseString_v2().
|
private |
Definition at line 160 of file SgMasterRecord.h.
Referenced by SgMasterRecord(), findRecordByCode(), findRecordByName(), lookupRecordByCode(), lookupRecordByName(), and mfVersion().
|
private |
Definition at line 151 of file SgMasterRecord.h.
Referenced by getName(), operator=(), parseString_v1(), parseString_v2(), and setName().
|
private |
Definition at line 157 of file SgMasterRecord.h.
Referenced by getScheduledBy(), operator=(), parseString_v1(), parseString_v2(), and setScheduledBy().
|
private |
Definition at line 155 of file SgMasterRecord.h.
Referenced by getStations(), operator=(), parseString_v1(), parseString_v2(), and setStations().
|
private |
Definition at line 159 of file SgMasterRecord.h.
Referenced by getSubmittedBy(), operator=(), parseString_v1(), parseString_v2(), and setSubmittedBy().
|
private |
Definition at line 152 of file SgMasterRecord.h.
Referenced by getType(), operator=(), parseString_v2(), and setType().