00001 #ifndef __GLIMSDATASET_H 00002 #define __GLIMSDATASET_H 00003 00004 #include "xmlserializeable.h" 00005 #include "glimslinedata.h" 00006 #include "glimsgiddata.h" 00007 #include "session.h" 00008 #include "imageinf.h" 00009 #include "linedefset.h" 00010 00016 class GLIMSDataset : public XMLSerializeable { 00017 protected: 00018 GLIMSLineData mLineData; 00019 GLIMSGIDData mGIDData; 00020 Session mSession; 00021 ImageInf mImgInf; 00022 Image *mImg; 00023 00024 public: 00025 GLIMSDataset( Image *img ); 00026 virtual bool toXML( QDomDocument &doc, 00027 QDomElement &elem, 00028 std::string id="" ); 00029 00030 virtual bool fromXML( QDomElement &elem ); 00031 00032 GLIMSLineData& getLineData( ) { 00033 return mLineData; 00034 } 00035 GLIMSGIDData& getGIDData( ) { 00036 return mGIDData; 00037 } 00038 Session& getSession( ) { 00039 return mSession; 00040 } 00041 00045 ImageInf& getImageInf( ) { 00046 return mImgInf; 00047 } 00048 00049 // make updates to project as needed based on project version 00050 void updateVersion (QDate * currentVersion) ; 00051 }; 00052 00053 #endif 00054 00055 00056 00057