00001 #ifndef __SESSION_H 00002 #define __SESSION_H 00003 00004 #include <string> 00005 #include "shape.h" 00006 #include "xmlserializeable.h" 00007 #include "ValidationReport.h" 00008 00025 class Session : public XMLSerializeable { 00026 public: 00027 int mRC_ID; 00028 std::string mDataSrc; 00029 std::string mProcDesc; 00030 std::string manlst_surn; 00031 std::string manlst_givn; 00032 std::string m3d_desc; 00033 std::string manaly_time; 00034 Node mCenterPoint; 00035 00036 00045 virtual bool fromXML( QDomElement &elem ) { 00046 mRC_ID = readIntTag ( elem, "RC_ID" ); 00047 mDataSrc = readTextTag( elem, "DataSrc" ); 00048 mProcDesc = readTextTag( elem, "ProcDesc" ); 00049 manlst_surn = readTextTag( elem, "anlst_surn" ); 00050 manlst_givn = readTextTag( elem, "anlst_givn" ); 00051 m3d_desc = readTextTag( elem, "ThreeD_desc" ); 00052 manaly_time = readTextTag( elem, "analy_time" ); 00053 mCenterPoint.fromXML( elem ); 00054 return true; 00055 } 00056 00060 virtual bool toXML( QDomDocument &doc, 00061 QDomElement &elem, 00062 std::string id = "" ) { 00063 QDomElement base = createBaseTag( doc, elem, id, "Session" ); 00064 00065 writeIntTag ( doc, base, "RC_ID", mRC_ID ); 00066 writeTextTag( doc, base, "DataSrc", mDataSrc ); 00067 writeTextTag( doc, base, "ProcDesc", mProcDesc ); 00068 writeTextTag( doc, base, "anlst_surn", manlst_surn ); 00069 writeTextTag( doc, base, "anlst_givn", manlst_givn ); 00070 writeTextTag( doc, base, "ThreeD_desc", m3d_desc ); 00071 writeTextTag( doc, base, "analy_time", manaly_time ); 00072 mCenterPoint.toXML( doc, base ); 00073 return true; 00074 } 00075 00076 00077 00081 bool validate (ValidationReport * valRep) ; 00082 00083 00084 }; 00085 00086 #endif 00087 00088
Home |
Search |
Disclaimers & Privacy |
Contact Us GLIMSView Maintainer: dsoltesz@usgs.gov |