GLIMSView Source Code Documentation

GLIMSDataset Class Reference

#include <glimsdataset.h>

Inheritance diagram for GLIMSDataset:

Inheritance graph
[legend]

List of all members.


Detailed Description

A structure holding all data that pertains to a GLIMS ingest.

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)
GLIMSLineDatagetLineData ()
GLIMSGIDDatagetGIDData ()
SessiongetSession ()
ImageInfgetImageInf ()
 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
ImagemImg
QDate mCurrentVersion

Constructor & Destructor Documentation

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().

Here is the call graph for this function:


Member Function Documentation

bool GLIMSDataset::toXML ( QDomDocument &  doc,
QDomElement &  elem,
std::string  id = "" 
) [virtual]

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().

Here is the call graph for this function:

GLIMSLineData& GLIMSDataset::getLineData (  )  [inline]

GLIMSGIDData& GLIMSDataset::getGIDData (  )  [inline]

Session& GLIMSDataset::getSession (  )  [inline]

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().

Here is the call graph for this function:

bool XMLSerializeable::writeTextTag ( QDomDocument &  doc,
QDomElement &  elem,
std::string  tagName,
std::string  text,
std::string  id = "" 
) [protected, virtual, inherited]

virtual bool XMLSerializeable::writeIntTag ( QDomDocument &  doc,
QDomElement &  elem,
std::string  tagName,
int  val,
std::string  id = "" 
) [inline, protected, virtual, inherited]

virtual bool XMLSerializeable::writeDoubleTag ( QDomDocument &  doc,
QDomElement &  elem,
std::string  tagName,
double  val,
std::string  id = "" 
) [inline, protected, virtual, inherited]

std::string XMLSerializeable::readTextTag ( QDomElement  elem,
std::string  tagName = "",
std::string  id = "" 
) [protected, virtual, inherited]

virtual int XMLSerializeable::readIntTag ( QDomElement  elem,
std::string  tagName = "",
std::string  id = "" 
) [inline, protected, virtual, inherited]

virtual double XMLSerializeable::readDoubleTag ( QDomElement  elem,
std::string  tagName = "",
std::string  id = "" 
) [inline, protected, virtual, inherited]

virtual QDomElement XMLSerializeable::createBaseTag ( QDomDocument &  doc,
QDomElement &  elem,
std::string  id,
std::string  tagName 
) [inline, protected, virtual, inherited]

QDomElement XMLSerializeable::getElemByTagName ( QDomElement &  elem,
std::string  name 
) [protected, virtual, inherited]

Definition at line 119 of file xmlserializeable.cpp.

Referenced by GlacierIDDef::fromXML().

std::string XMLSerializeable::qDateToString ( const QDate *  aQDate  )  [protected, virtual, inherited]

bool XMLSerializeable::stringToQDate ( const std::string  aStrDate,
QDate *  aQDate 
) [protected, virtual, inherited]

std::string XMLSerializeable::qDateTimeToString ( const QDateTime *  aQDateTime  )  [protected, virtual, inherited]

Definition at line 149 of file xmlserializeable.cpp.

References XMLSerializeable::qDateToString().

Here is the call graph for this function:

bool XMLSerializeable::stringToQDateTime ( const std::string  aStrDateTime,
QDateTime *  aQDateTime 
) [protected, virtual, inherited]

Definition at line 205 of file xmlserializeable.cpp.

References XMLSerializeable::stringToQDate().

Here is the call graph for this function:

bool XMLSerializeable::toXMLFile ( std::string  fname,
std::string  docname 
) [virtual, inherited]

bool XMLSerializeable::fromXMLFile ( std::string  fname,
std::string  docname 
) [virtual, inherited]

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().

Here is the call graph for this function:

void XMLSerializeable::setCurrentVersion ( QDate  versionQDate  )  [virtual, inherited]

Definition at line 254 of file xmlserializeable.cpp.

References XMLSerializeable::mCurrentVersion.

QDate XMLSerializeable::getCurrentVersion (  )  [virtual, inherited]

Definition at line 258 of file xmlserializeable.cpp.

References XMLSerializeable::mCurrentVersion.

std::string XMLSerializeable::getCurrentVersionStr (  )  [virtual, inherited]

Definition at line 262 of file xmlserializeable.cpp.

References XMLSerializeable::mCurrentVersion, and XMLSerializeable::qDateToString().

Here is the call graph for this function:


Member Data Documentation

Definition at line 18 of file glimsdataset.h.

Referenced by fromXML(), getLineData(), GLIMSDataset(), and toXML().

Definition at line 19 of file glimsdataset.h.

Referenced by fromXML(), getGIDData(), GLIMSDataset(), toXML(), and updateVersion().

Definition at line 20 of file glimsdataset.h.

Referenced by fromXML(), getSession(), GLIMSDataset(), and toXML().

Definition at line 21 of file glimsdataset.h.

Referenced by fromXML(), getImageInf(), GLIMSDataset(), and toXML().

Image* GLIMSDataset::mImg [protected]

Definition at line 22 of file glimsdataset.h.

Referenced by toXML().

QDate XMLSerializeable::mCurrentVersion [protected, inherited]


The documentation for this class was generated from the following files:

Home | Search | Disclaimers & Privacy | Contact Us
GLIMSView Maintainer: dsoltesz@usgs.gov