GLIMSView Source Code Documentation

GLIMSGlobals Class Reference

#include <glimsglobals.h>

List of all members.


Detailed Description

This provides various global data that corresponds to the GLIMS specification.

This includes default types/values within the GLIMS database. Most of the data comes from XML serialized files located in the globals file in the Glimsviewer file structure. Available display attributes are available here as well.

Definition at line 23 of file glimsglobals.h.


Static Public Member Functions

static void loadGlobals ()
static void readAttrFile (std::vector< Attr > &, std::string fname)
static std::string getIDOf (const std::vector< Attr > glacierAttribute, const std::string attributeValue)
static int getIntIDOf (const std::vector< Attr > glacierAttribute, const std::string attributeValue)
static int getNdxOfValue (const std::vector< Attr > glacierAttribute, const std::string attributeValue)
static int getNdxOfID (const std::vector< Attr > glacierAttribute, const int attributeID)
static int getNdxOfID (const std::vector< Attr > glacierAttribute, const std::string attributeID)

Static Public Attributes

static bool mGlbsLoaded = false
static std::vector< AttrmGlbGlacTypes
static std::vector< AttrmGlbMDF
static std::vector< AttrmGlbTypes
static std::vector< AttrmGlbFtrs
static std::vector< AttrmGlbLbls
static std::vector< AttrmGlbPrimCsfn
static std::vector< AttrmGlbForm
static std::vector< AttrmGlbFrntChar
static std::vector< AttrmGlbLonChar
static std::vector< AttrmGlbDomMassSrc
static std::vector< AttrmGlbTongueAct
static const std::string GLDF_FILE = "globals/global.ldf"
static const std::string GMDF_FILE = "globals/linemat.atr"
static const std::string GTYPE_FILE = "globals/linetypes.atr"
static const std::string GLBL_FILE = "globals/linelbls.atr"
static const std::string GFTR_FILE = "globals/lineftrs.atr"
static const std::string GCAT_FILE = "globals/linecatagory.atr"
static const std::string GPCLASS_FILE = "globals/glacpclass.atr"
static const std::string GFORM_FILE = "globals/glacform.atr"
static const std::string GFCHAR_FILE = "globals/glacfrontalchar.atr"
static const std::string GLCHAR_FILE = "globals/glaclonchar.atr"
static const std::string GDOMMS_FILE = "globals/glacdommass.atr"
static const std::string GTGACT_FILE = "globals/glactongueact.atr"
static LineDefSet mGlbLDFSet
static std::vector< QColor > AVAILCOLORS
static std::vector< std::string > AVAILCOLORSTR

Member Function Documentation

void GLIMSGlobals::loadGlobals (  )  [static]

void GLIMSGlobals::readAttrFile ( std::vector< Attr > &  vec,
std::string  fname 
) [static]

Definition at line 84 of file glimsglobals.cpp.

References Attr::fromXML().

Referenced by loadGlobals().

Here is the call graph for this function:

std::string GLIMSGlobals::getIDOf ( const std::vector< Attr glacierAttribute,
const std::string  attributeValue 
) [static]

Definition at line 111 of file glimsglobals.cpp.

Referenced by getIntIDOf().

int GLIMSGlobals::getIntIDOf ( const std::vector< Attr glacierAttribute,
const std::string  attributeValue 
) [static]

Definition at line 120 of file glimsglobals.cpp.

References getIDOf().

Referenced by GlacierIDDlg::addClicked().

Here is the call graph for this function:

int GLIMSGlobals::getNdxOfValue ( const std::vector< Attr glacierAttribute,
const std::string  attributeValue 
) [static]

Definition at line 138 of file glimsglobals.cpp.

int GLIMSGlobals::getNdxOfID ( const std::vector< Attr glacierAttribute,
const int  attributeID 
) [static]

Definition at line 148 of file glimsglobals.cpp.

Referenced by GlacierIDDlg::loadGID().

int GLIMSGlobals::getNdxOfID ( const std::vector< Attr glacierAttribute,
const std::string  attributeID 
) [static]

Definition at line 162 of file glimsglobals.cpp.


Member Data Documentation

bool GLIMSGlobals::mGlbsLoaded = false [static]

Definition at line 25 of file glimsglobals.h.

Referenced by loadGlobals().

std::vector< Attr > GLIMSGlobals::mGlbGlacTypes [static]

std::vector< Attr > GLIMSGlobals::mGlbMDF [static]

std::vector< Attr > GLIMSGlobals::mGlbTypes [static]

std::vector< Attr > GLIMSGlobals::mGlbFtrs [static]

std::vector< Attr > GLIMSGlobals::mGlbLbls [static]

std::vector< Attr > GLIMSGlobals::mGlbPrimCsfn [static]

std::vector< Attr > GLIMSGlobals::mGlbForm [static]

std::vector< Attr > GLIMSGlobals::mGlbFrntChar [static]

std::vector< Attr > GLIMSGlobals::mGlbLonChar [static]

std::vector< Attr > GLIMSGlobals::mGlbDomMassSrc [static]

std::vector< Attr > GLIMSGlobals::mGlbTongueAct [static]

const std::string GLIMSGlobals::GLDF_FILE = "globals/global.ldf" [static]

Definition at line 43 of file glimsglobals.h.

Referenced by LineDefSet::LineDefSet(), and loadGlobals().

const std::string GLIMSGlobals::GMDF_FILE = "globals/linemat.atr" [static]

Definition at line 44 of file glimsglobals.h.

Referenced by loadGlobals().

const std::string GLIMSGlobals::GTYPE_FILE = "globals/linetypes.atr" [static]

Definition at line 45 of file glimsglobals.h.

Referenced by loadGlobals().

const std::string GLIMSGlobals::GLBL_FILE = "globals/linelbls.atr" [static]

Definition at line 46 of file glimsglobals.h.

Referenced by loadGlobals().

const std::string GLIMSGlobals::GFTR_FILE = "globals/lineftrs.atr" [static]

Definition at line 47 of file glimsglobals.h.

Referenced by loadGlobals().

const std::string GLIMSGlobals::GCAT_FILE = "globals/linecatagory.atr" [static]

Definition at line 48 of file glimsglobals.h.

Referenced by loadGlobals().

const std::string GLIMSGlobals::GPCLASS_FILE = "globals/glacpclass.atr" [static]

Definition at line 49 of file glimsglobals.h.

Referenced by loadGlobals().

const std::string GLIMSGlobals::GFORM_FILE = "globals/glacform.atr" [static]

Definition at line 50 of file glimsglobals.h.

Referenced by loadGlobals().

const std::string GLIMSGlobals::GFCHAR_FILE = "globals/glacfrontalchar.atr" [static]

Definition at line 51 of file glimsglobals.h.

Referenced by loadGlobals().

const std::string GLIMSGlobals::GLCHAR_FILE = "globals/glaclonchar.atr" [static]

Definition at line 52 of file glimsglobals.h.

Referenced by loadGlobals().

const std::string GLIMSGlobals::GDOMMS_FILE = "globals/glacdommass.atr" [static]

Definition at line 53 of file glimsglobals.h.

Referenced by loadGlobals().

const std::string GLIMSGlobals::GTGACT_FILE = "globals/glactongueact.atr" [static]

Definition at line 54 of file glimsglobals.h.

Referenced by loadGlobals().

Definition at line 56 of file glimsglobals.h.

Referenced by GLIMSLineData::loadDefaultSet(), and loadGlobals().

std::vector< QColor > GLIMSGlobals::AVAILCOLORS [static]

std::vector< std::string > GLIMSGlobals::AVAILCOLORSTR [static]


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

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