#include <session.h>
This is user and dataset information that is session wide.
Definition at line 25 of file session.h.
Public Member Functions | |
virtual bool | fromXML (QDomElement &elem) |
Read Session information from the project XML file. | |
virtual bool | toXML (QDomDocument &doc, QDomElement &elem, std::string id="") |
Write Session information to the XML file. | |
bool | validate (ValidationReport *valRep) |
Check that required session information is present. | |
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 | |
int | mRC_ID |
Regional Center ID. | |
std::string | mDataSrc |
Data Source. | |
std::string | mProcDesc |
Processing description. | |
std::string | manlst_surn |
Analyst's surname. | |
std::string | manlst_givn |
Analyst's given name. | |
std::string | m3d_desc |
3D description | |
std::string | manaly_time |
Analysis time. | |
Node | mCenterPoint |
Center point of image. | |
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 |
virtual bool Session::fromXML | ( | QDomElement & | elem | ) | [inline, virtual] |
Read Session information from the project XML file.
Implements XMLSerializeable.
Definition at line 45 of file session.h.
References Node::fromXML(), m3d_desc, manaly_time, manlst_givn, manlst_surn, mCenterPoint, mDataSrc, mProcDesc, mRC_ID, XMLSerializeable::readIntTag(), and XMLSerializeable::readTextTag().
Referenced by GLIMSDataset::fromXML().
virtual bool Session::toXML | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | id = "" | |||
) | [inline, virtual] |
Write Session information to the XML file.
Implements XMLSerializeable.
Definition at line 60 of file session.h.
References XMLSerializeable::createBaseTag(), m3d_desc, manaly_time, manlst_givn, manlst_surn, mCenterPoint, mDataSrc, mProcDesc, mRC_ID, Node::toXML(), XMLSerializeable::writeIntTag(), and XMLSerializeable::writeTextTag().
Referenced by GLIMSDataset::toXML().
bool Session::validate | ( | ValidationReport * | valRep | ) |
Check that required session information is present.
Definition at line 6 of file session.cpp.
References ValidationReport::breakBegin(), ValidationReport::breakEnd(), m3d_desc, manaly_time, manlst_givn, manlst_surn, mDataSrc, mProcDesc, mRC_ID, ValidationReport::reportError(), ValidationReport::reportOkay(), and ValidationReport::reportWarning().
Referenced by GLIMSProject::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(), 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(), 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(), 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(), 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(), 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().
int Session::mRC_ID |
Regional Center ID.
Definition at line 27 of file session.h.
Referenced by GLIMSProject::exportGLIMSIngest(), fromXML(), GLIMSDataset::GLIMSDataset(), GLIMSProject::importGLIMSIngestData(), SessionDlg::loadData(), SessionDlg::rcchanged(), toXML(), and validate().
std::string Session::mDataSrc |
Data Source.
Definition at line 28 of file session.h.
Referenced by SessionDlg::dschanged(), GLIMSProject::exportGLIMSIngest(), fromXML(), SessionDlg::loadData(), toXML(), and validate().
std::string Session::mProcDesc |
Processing description.
Definition at line 29 of file session.h.
Referenced by GLIMSProject::exportGLIMSIngest(), fromXML(), SessionDlg::loadData(), SessionDlg::pdchanged(), toXML(), and validate().
std::string Session::manlst_surn |
Analyst's surname.
Definition at line 30 of file session.h.
Referenced by GLIMSProject::exportGLIMSIngest(), fromXML(), SessionDlg::lnchanged(), SessionDlg::loadData(), toXML(), and validate().
std::string Session::manlst_givn |
Analyst's given name.
Definition at line 31 of file session.h.
Referenced by GLIMSProject::exportGLIMSIngest(), SessionDlg::fnchanged(), fromXML(), SessionDlg::loadData(), toXML(), and validate().
std::string Session::m3d_desc |
3D description
Definition at line 32 of file session.h.
Referenced by SessionDlg::d3changed(), GLIMSProject::exportGLIMSIngest(), fromXML(), SessionDlg::loadData(), toXML(), and validate().
std::string Session::manaly_time |
Analysis time.
Definition at line 33 of file session.h.
Referenced by SessionDlg::atchanged(), GLIMSProject::exportGLIMSIngest(), fromXML(), SessionDlg::loadData(), GLIMSProject::setTimeStamp(), 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 |