#include <glacieriddef.h>
XML io routines are provided for easy serialization. A routine for producing a string representation in accordance with the GLIMS specification is provided.
Definition at line 34 of file glacieriddef.h.
Public Member Functions | |
GlacierIDDef () | |
Constructor. | |
GlacierIDDef (const QString &new_glimsID) | |
Constructor. | |
~GlacierIDDef () | |
virtual bool | fromXML (QDomElement &elem) |
virtual bool | toXML (QDomDocument &doc, QDomElement &elem, std::string id="") |
virtual void | updateVersion (QDate *projectVersion) |
std::string | toString () |
bool | validate (ValidationReport *valRep) |
Check that this glacier ID has required metadata. | |
virtual bool | toXMLFile (std::string fname, std::string docname) |
virtual bool | fromXMLFile (std::string fname, std::string docname) |
virtual void | setCurrentVersion (std::string versionString) |
virtual void | setCurrentVersion (QDate versionQDate) |
virtual QDate | getCurrentVersion () |
virtual std::string | getCurrentVersionStr () |
Public Attributes | |
double | mLat |
LATITUDE OF GLACIER ID. | |
double | mLon |
LONGITUDE OF GLACIER ID. | |
Node | mImgCoord |
COORDINATE WITHIN IMAGE. | |
std::string | mName |
NAME OF GLACIER. | |
std::string | mWGMSID |
WGMS ID. | |
std::string | mLocalID |
LOCAL(TO RC) ID. | |
std::string | mParentID |
PARENT GID. | |
int | mPrimCsfn |
PRIMARY CLASSIFICATION INDEX. | |
int | mForm |
FORM INDEX. | |
int | mFChar |
FRONTAL CHARACTERISTICS INDEX. | |
int | mLChar |
LONGITUDINAL CHARACTERISTICS INDEX. | |
int | mDomMassSrc |
DOMINANT MASS SOURCE INDEX. | |
int | mTongueAct |
TOUNGE ACTIVITY INDEX. | |
float | mWidth |
WIDTH. | |
float | mLength |
LENGTH. | |
float | mArea |
AREA. | |
float | mAbzoneArea |
ABZONE AREA. | |
float | mSpeed |
SPEED. | |
float | mELA |
ELA (Equilibrium Line Altitude, i.e., altitude where net mass balance is zero, ablation equals accumulation). | |
std::string | mELADesc |
ELA DESCRIPTION (ELA is Equilibrium Line Altitude, i.e., altitude where net mass balance is zero, ablation equals accumulation). | |
float | mSnowLineElev |
SNOW LINE ELEVATION. | |
Protected Member Functions | |
virtual bool | writeTextTag (QDomDocument &doc, QDomElement &elem, std::string tagName, std::string text, std::string id="") |
virtual bool | writeIntTag (QDomDocument &doc, QDomElement &elem, std::string tagName, int val, std::string id="") |
virtual bool | writeDoubleTag (QDomDocument &doc, QDomElement &elem, std::string tagName, double val, std::string id="") |
virtual std::string | readTextTag (QDomElement elem, std::string tagName="", std::string id="") |
virtual int | readIntTag (QDomElement elem, std::string tagName="", std::string id="") |
virtual double | readDoubleTag (QDomElement elem, std::string tagName="", std::string id="") |
virtual QDomElement | createBaseTag (QDomDocument &doc, QDomElement &elem, std::string id, std::string tagName) |
virtual QDomElement | getElemByTagName (QDomElement &elem, std::string name) |
virtual std::string | qDateToString (const QDate *aQDate) |
virtual bool | stringToQDate (const std::string aStrDate, QDate *aQDate) |
virtual std::string | qDateTimeToString (const QDateTime *aQDateTime) |
virtual bool | stringToQDateTime (const std::string aStrDateTime, QDateTime *aQDateTime) |
Protected Attributes | |
QDate | mCurrentVersion |
GlacierIDDef::GlacierIDDef | ( | ) | [inline] |
Constructor.
Definition at line 67 of file glacieriddef.h.
References mAbzoneArea, mArea, mDomMassSrc, mELA, mELADesc, mFChar, mForm, mLat, mLChar, mLength, mLocalID, mLon, mName, mParentID, mPrimCsfn, mSnowLineElev, mSpeed, mTongueAct, mWGMSID, and mWidth.
GlacierIDDef::GlacierIDDef | ( | const QString & | new_glimsID | ) | [inline] |
Constructor.
Definition at line 94 of file glacieriddef.h.
References mAbzoneArea, mArea, mDomMassSrc, mELA, mELADesc, mFChar, mForm, mLat, mLChar, mLength, mLocalID, mLon, mName, mParentID, mPrimCsfn, mSnowLineElev, mSpeed, mTongueAct, mWGMSID, and mWidth.
GlacierIDDef::~GlacierIDDef | ( | ) | [inline] |
Definition at line 138 of file glacieriddef.h.
virtual bool GlacierIDDef::fromXML | ( | QDomElement & | elem | ) | [inline, virtual] |
Implements XMLSerializeable.
Definition at line 140 of file glacieriddef.h.
References XMLSerializeable::getElemByTagName(), mAbzoneArea, mArea, mDomMassSrc, mELA, mELADesc, mFChar, mForm, mLat, mLChar, mLength, mLocalID, mLon, mName, mParentID, mPrimCsfn, mSnowLineElev, mSpeed, mTongueAct, mWGMSID, mWidth, XMLSerializeable::readDoubleTag(), XMLSerializeable::readIntTag(), and XMLSerializeable::readTextTag().
Referenced by GLIMSGIDData::fromXML().
virtual bool GlacierIDDef::toXML | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | id = "" | |||
) | [inline, virtual] |
Implements XMLSerializeable.
Definition at line 172 of file glacieriddef.h.
References mAbzoneArea, mArea, mDomMassSrc, mELA, mELADesc, mFChar, mForm, mLat, mLChar, mLength, mLocalID, mLon, mName, mParentID, mPrimCsfn, mSnowLineElev, mSpeed, mTongueAct, mWGMSID, mWidth, XMLSerializeable::writeDoubleTag(), XMLSerializeable::writeIntTag(), and XMLSerializeable::writeTextTag().
virtual void GlacierIDDef::updateVersion | ( | QDate * | projectVersion | ) | [inline, virtual] |
Definition at line 205 of file glacieriddef.h.
References mDomMassSrc, mFChar, mForm, mLChar, mPrimCsfn, and mTongueAct.
std::string GlacierIDDef::toString | ( | ) | [inline] |
< THE GID TO BE RETURNED
< STRING BUFFER
< 'N' OR 'S'
< HOLDS PRECEDING ZEROS FOR LON
< HOLDS PRECEDING ZEROS FOR LAT
< HOLDS FOLLOWING ZEROS FOR LON
< HOLDS FOLLOWING ZEROS FOR LAT
< LENGTH OF LAT PRECISION
< LENGTH OF LON PRECISION
Definition at line 222 of file glacieriddef.h.
Referenced by GLIMSProject::exportGLIMSIngest(), GlacierIDChooserDlg::loadList(), GlacierConfigDlg::loadList(), and validate().
bool GlacierIDDef::validate | ( | ValidationReport * | valRep | ) | [inline] |
Check that this glacier ID has required metadata.
Definition at line 300 of file glacieriddef.h.
References mAbzoneArea, mArea, mDomMassSrc, mELA, mELADesc, mFChar, mForm, mLat, mLChar, mLength, mLocalID, mLon, mName, mParentID, mPrimCsfn, mSnowLineElev, mSpeed, mTongueAct, mWGMSID, mWidth, ValidationReport::reportError(), ValidationReport::reportWarning(), ValidationReport::subsectionBegin(), ValidationReport::subsectionEnd(), and toString().
Referenced by GLIMSGIDData::validate().
bool XMLSerializeable::writeTextTag | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | tagName, | |||
std::string | text, | |||
std::string | id = "" | |||
) | [protected, virtual, inherited] |
Definition at line 7 of file xmlserializeable.cpp.
Referenced by ViewState::toXML(), Session::toXML(), Plugin::toXML(), LineDef::toXML(), ImageState::toXML(), ImageInf::toXML(), toXML(), and Attr::toXML().
virtual bool XMLSerializeable::writeIntTag | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | tagName, | |||
int | val, | |||
std::string | id = "" | |||
) | [inline, protected, virtual, inherited] |
Definition at line 38 of file xmlserializeable.h.
Referenced by ZoomAttr::toXML(), ViewState::toXML(), Session::toXML(), LineDef::toXML(), ImageState::toXML(), GlacierLine::toXML(), and toXML().
virtual bool XMLSerializeable::writeDoubleTag | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | tagName, | |||
double | val, | |||
std::string | id = "" | |||
) | [inline, protected, virtual, inherited] |
Definition at line 49 of file xmlserializeable.h.
Referenced by ZoomAttr::toXML(), Rect::toXML(), Node::toXML(), LineDef::toXML(), ImageInf::toXML(), and toXML().
std::string XMLSerializeable::readTextTag | ( | QDomElement | elem, | |
std::string | tagName = "" , |
|||
std::string | id = "" | |||
) | [protected, virtual, inherited] |
Definition at line 21 of file xmlserializeable.cpp.
Referenced by ViewState::fromXML(), Session::fromXML(), Plugin::fromXML(), LineDef::fromXML(), ImageState::fromXML(), ImageInf::fromXML(), fromXML(), and Attr::fromXML().
virtual int XMLSerializeable::readIntTag | ( | QDomElement | elem, | |
std::string | tagName = "" , |
|||
std::string | id = "" | |||
) | [inline, protected, virtual, inherited] |
Definition at line 65 of file xmlserializeable.h.
Referenced by ZoomAttr::fromXML(), ViewState::fromXML(), Session::fromXML(), LineDef::fromXML(), ImageState::fromXML(), GlacierLine::fromXML(), and fromXML().
virtual double XMLSerializeable::readDoubleTag | ( | QDomElement | elem, | |
std::string | tagName = "" , |
|||
std::string | id = "" | |||
) | [inline, protected, virtual, inherited] |
Definition at line 72 of file xmlserializeable.h.
Referenced by ZoomAttr::fromXML(), Rect::fromXML(), Node::fromXML(), LineDef::fromXML(), ImageInf::fromXML(), and fromXML().
virtual QDomElement XMLSerializeable::createBaseTag | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | id, | |||
std::string | tagName | |||
) | [inline, protected, virtual, inherited] |
Definition at line 79 of file xmlserializeable.h.
Referenced by ZoomAttr::toXML(), ViewState::toXML(), Session::toXML(), and MainToolbar::toXML().
QDomElement XMLSerializeable::getElemByTagName | ( | QDomElement & | elem, | |
std::string | name | |||
) | [protected, virtual, inherited] |
std::string XMLSerializeable::qDateToString | ( | const QDate * | aQDate | ) | [protected, virtual, inherited] |
Definition at line 135 of file xmlserializeable.cpp.
Referenced by XMLSerializeable::getCurrentVersionStr(), XMLSerializeable::qDateTimeToString(), and XMLSerializeable::toXMLFile().
bool XMLSerializeable::stringToQDate | ( | const std::string | aStrDate, | |
QDate * | aQDate | |||
) | [protected, virtual, inherited] |
Definition at line 170 of file xmlserializeable.cpp.
Referenced by GLIMSProject::fromXML(), XMLSerializeable::setCurrentVersion(), and XMLSerializeable::stringToQDateTime().
std::string XMLSerializeable::qDateTimeToString | ( | const QDateTime * | aQDateTime | ) | [protected, virtual, inherited] |
Definition at line 149 of file xmlserializeable.cpp.
References XMLSerializeable::qDateToString().
bool XMLSerializeable::stringToQDateTime | ( | const std::string | aStrDateTime, | |
QDateTime * | aQDateTime | |||
) | [protected, virtual, inherited] |
Definition at line 205 of file xmlserializeable.cpp.
References XMLSerializeable::stringToQDate().
bool XMLSerializeable::toXMLFile | ( | std::string | fname, | |
std::string | docname | |||
) | [virtual, inherited] |
Definition at line 87 of file xmlserializeable.cpp.
References XMLSerializeable::mCurrentVersion, XMLSerializeable::qDateToString(), and XMLSerializeable::toXML().
Referenced by MainToolbar::closeEvent(), LineSelectorDlg::exportFile(), PluginSet::importPlugin(), GLIMSProject::save(), GLIMSProject::saveAs(), and MainToolbar::~MainToolbar().
bool XMLSerializeable::fromXMLFile | ( | std::string | fname, | |
std::string | docname | |||
) | [virtual, inherited] |
Definition at line 53 of file xmlserializeable.cpp.
References XMLSerializeable::fromXML().
Referenced by MainToolbar::buildViews(), LineSelectorDlg::importFile(), LineDefSet::LineDefSet(), GLIMSGlobals::loadGlobals(), GLIMSProject::open(), and PluginSet::PluginSet().
void XMLSerializeable::setCurrentVersion | ( | std::string | versionString | ) | [virtual, inherited] |
Definition at line 249 of file xmlserializeable.cpp.
References XMLSerializeable::mCurrentVersion, and XMLSerializeable::stringToQDate().
Referenced by MainToolbar::setupProj().
void XMLSerializeable::setCurrentVersion | ( | QDate | versionQDate | ) | [virtual, inherited] |
QDate XMLSerializeable::getCurrentVersion | ( | ) | [virtual, inherited] |
std::string XMLSerializeable::getCurrentVersionStr | ( | ) | [virtual, inherited] |
Definition at line 262 of file xmlserializeable.cpp.
References XMLSerializeable::mCurrentVersion, and XMLSerializeable::qDateToString().
double GlacierIDDef::mLat |
LATITUDE OF GLACIER ID.
Definition at line 36 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSGIDData::addGID(), GLIMSGIDData::addNode(), GLIMSProject::exportGLIMSIngest(), GLIMSGIDData::fromXML(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), GLIMSGIDData::moveNode(), toString(), toXML(), and validate().
double GlacierIDDef::mLon |
LONGITUDE OF GLACIER ID.
Definition at line 37 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSGIDData::addGID(), GLIMSGIDData::addNode(), GLIMSProject::exportGLIMSIngest(), GLIMSGIDData::fromXML(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), GLIMSGIDData::moveNode(), toString(), toXML(), and validate().
std::string GlacierIDDef::mName |
NAME OF GLACIER.
Definition at line 39 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), GlacierIDChooserDlg::loadList(), GlacierConfigDlg::loadList(), toXML(), and validate().
std::string GlacierIDDef::mWGMSID |
WGMS ID.
Definition at line 40 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), GlacierIDChooserDlg::loadList(), GlacierConfigDlg::loadList(), toXML(), and validate().
std::string GlacierIDDef::mLocalID |
LOCAL(TO RC) ID.
Definition at line 41 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), GlacierIDChooserDlg::loadList(), GlacierConfigDlg::loadList(), toXML(), and validate().
std::string GlacierIDDef::mParentID |
PARENT GID.
Definition at line 42 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), GlacierIDChooserDlg::loadList(), GlacierConfigDlg::loadList(), toXML(), and validate().
PRIMARY CLASSIFICATION INDEX.
Definition at line 43 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), updateVersion(), and validate().
FORM INDEX.
Definition at line 44 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), updateVersion(), and validate().
FRONTAL CHARACTERISTICS INDEX.
Definition at line 45 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), updateVersion(), and validate().
LONGITUDINAL CHARACTERISTICS INDEX.
Definition at line 46 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), updateVersion(), and validate().
DOMINANT MASS SOURCE INDEX.
Definition at line 47 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), updateVersion(), and validate().
TOUNGE ACTIVITY INDEX.
Definition at line 48 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), updateVersion(), and validate().
float GlacierIDDef::mWidth |
WIDTH.
Definition at line 49 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), and validate().
float GlacierIDDef::mLength |
LENGTH.
Definition at line 50 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), and validate().
float GlacierIDDef::mArea |
AREA.
Definition at line 51 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), and validate().
ABZONE AREA.
Definition at line 52 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), and validate().
float GlacierIDDef::mSpeed |
SPEED.
Definition at line 53 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), and validate().
float GlacierIDDef::mELA |
ELA (Equilibrium Line Altitude, i.e., altitude where net mass balance is zero, ablation equals accumulation).
Definition at line 54 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), and validate().
std::string GlacierIDDef::mELADesc |
ELA DESCRIPTION (ELA is Equilibrium Line Altitude, i.e., altitude where net mass balance is zero, ablation equals accumulation).
Definition at line 56 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), and validate().
SNOW LINE ELEVATION.
Definition at line 59 of file glacieriddef.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::exportGLIMSIngest(), fromXML(), GlacierIDDef(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GlacierIDDlg::loadGID(), toXML(), and validate().
QDate XMLSerializeable::mCurrentVersion [protected, inherited] |
Definition at line 29 of file xmlserializeable.h.
Referenced by XMLSerializeable::getCurrentVersion(), XMLSerializeable::getCurrentVersionStr(), XMLSerializeable::setCurrentVersion(), and XMLSerializeable::toXMLFile().
Home |
Search |
Disclaimers & Privacy |
Contact Us GLIMSView Maintainer: dsoltesz@usgs.gov |