28 #include <QtCore/QFile>
29 #include <QtCore/QStringList>
30 #include <QtCore/QTextStream>
46 return "SgBaselineExternalWeight";
61 QStringList l = str.mid(9).simplified().split(
' ', QString::SkipEmptyParts);
65 "parseString(): cannot parse external weights string: [" + str +
"]");
74 "parseString(): cannot get DBH version number from external weights string: [" + str +
"]");
88 "parseString(): cannot get delay weight from external weights string: [" + str +
"]");
97 "parseString(): cannot get rate weight from external weights string: [" + str +
"]");
119 return "SgExternalWeights";
133 ": readFile(): the file [" + fileName +
"] with external weights does not exist");
138 for (QMap<QString, SgBaselineExternalWeight*>::iterator it=
weights_.begin(); it!=
weights_.end(); ++it)
143 if (f.open(QFile::ReadOnly))
169 ": readFile(): got a duplicate record for " + w.
getBaselineName() +
"'s weight of the" +
179 ": readFile(): " + QString().setNum(
weights_.size()) +
" weight records have been acquired from" +
180 " the external weightsfile " +
fileName_);
200 ": setupExternalWeights(): cannot find a weight record for the baseline " +
QMap< QString, SgVlbiBaselineInfo * >::iterator BaselinesByName_it
QMap< QString, SgVlbiBaselineInfo * > BaselinesByName
int getDbhVersionNumber() const
double getDelayWeight() const
bool parseString(const QString &)
double getRateWeight() const
void setRateWeight(double)
const QString & getBaselineName() const
void setDbhVersionNumber(int)
static const QString className()
void setDelayWeight(double)
bool readFile(const QString &)
QMap< QString, SgBaselineExternalWeight * > weights_
static const QString className()
void setupExternalWeights(BaselinesByName &)
virtual void write(LogLevel, quint32, const QString &, bool=false)
const QString & getKey() const
void setSigma2add(DataType dType, double d)