#include <glimsdataset.h>
This provides serialization routines that branch out into the various sub-datasets.
Definition at line 16 of file glimsdataset.h.
Public Member Functions | |
GLIMSDataset (Image *img) | |
virtual bool | toXML (QDomDocument &doc, QDomElement &elem, std::string id="") |
virtual bool | fromXML (QDomElement &elem) |
GLIMSLineData & | getLineData () |
GLIMSGIDData & | getGIDData () |
Session & | getSession () |
ImageInf & | getImageInf () |
Return a copy of the Image Information. | |
void | updateVersion (QDate *currentVersion) |
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 () |
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 | |
GLIMSLineData | mLineData |
GLIMSGIDData | mGIDData |
Session | mSession |
ImageInf | mImgInf |
Image * | mImg |
QDate | mCurrentVersion |
GLIMSDataset::GLIMSDataset | ( | Image * | img | ) |
Definition at line 5 of file glimsdataset.cpp.
References Image::getImageInf(), mGIDData, mImgInf, mLineData, Session::mRC_ID, mSession, and VectorData::setImage().
bool GLIMSDataset::toXML | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | id = "" | |||
) | [virtual] |
Implements XMLSerializeable.
Definition at line 13 of file glimsdataset.cpp.
References Image::getLL(), Image::height(), ImageInf::mCenterLat, ImageInf::mCenterLon, mGIDData, mImg, mImgInf, mLineData, mSession, Image::setCornerPnts(), GLIMSLineData::toXML(), GLIMSGIDData::toXML(), Session::toXML(), ImageInf::toXML(), and Image::width().
Referenced by GLIMSProject::toXML().
bool GLIMSDataset::fromXML | ( | QDomElement & | elem | ) | [virtual] |
Implements XMLSerializeable.
Definition at line 38 of file glimsdataset.cpp.
References GLIMSLineData::fromXML(), GLIMSGIDData::fromXML(), Session::fromXML(), ImageInf::fromXML(), mGIDData, mImgInf, mLineData, and mSession.
Referenced by GLIMSProject::fromXML().
GLIMSLineData& GLIMSDataset::getLineData | ( | ) | [inline] |
Definition at line 32 of file glimsdataset.h.
References mLineData.
Referenced by ImageCalculatorDialog::buildDialog(), ImageCalculator::calculate(), GLIMSProject::create(), GLIMSProject::exportGLIMSIngest(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), ConfigDlg::loadTabs(), GLIMSProject::setup(), and GLIMSProject::validate().
GLIMSGIDData& GLIMSDataset::getGIDData | ( | ) | [inline] |
Definition at line 35 of file glimsdataset.h.
References mGIDData.
Referenced by GLIMSProject::exportGLIMSIngest(), GLIMSProject::importGIDsFromShapefile(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), ConfigDlg::loadTabs(), GLIMSProject::setup(), and GLIMSProject::validate().
Session& GLIMSDataset::getSession | ( | ) | [inline] |
Definition at line 38 of file glimsdataset.h.
References mSession.
Referenced by GLIMSProject::exportGLIMSIngest(), GLIMSProject::importGLIMSIngestData(), ConfigDlg::loadTabs(), GLIMSProject::setTimeStamp(), and GLIMSProject::validate().
ImageInf& GLIMSDataset::getImageInf | ( | ) | [inline] |
Return a copy of the Image Information.
Definition at line 45 of file glimsdataset.h.
References mImgInf.
Referenced by GLIMSProject::exportGLIMSIngest(), GLIMSProject::importGLIMSIngestImageInfo(), ConfigDlg::loadTabs(), and GLIMSProject::validate().
void GLIMSDataset::updateVersion | ( | QDate * | currentVersion | ) |
Definition at line 68 of file glimsdataset.cpp.
References mGIDData, and GLIMSGIDData::updateVersion().
Referenced by GLIMSProject::fromXML().
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(), GlacierIDDef::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 GlacierIDDef::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 GlacierIDDef::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(), GlacierIDDef::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 GlacierIDDef::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 GlacierIDDef::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().
GLIMSLineData GLIMSDataset::mLineData [protected] |
Definition at line 18 of file glimsdataset.h.
Referenced by fromXML(), getLineData(), GLIMSDataset(), and toXML().
GLIMSGIDData GLIMSDataset::mGIDData [protected] |
Definition at line 19 of file glimsdataset.h.
Referenced by fromXML(), getGIDData(), GLIMSDataset(), toXML(), and updateVersion().
Session GLIMSDataset::mSession [protected] |
Definition at line 20 of file glimsdataset.h.
Referenced by fromXML(), getSession(), GLIMSDataset(), and toXML().
ImageInf GLIMSDataset::mImgInf [protected] |
Definition at line 21 of file glimsdataset.h.
Referenced by fromXML(), getImageInf(), GLIMSDataset(), and toXML().
Image* GLIMSDataset::mImg [protected] |
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 |