00001 00036 #ifndef INC_MIE_GEOMETRIC_H 00037 #define INC_MIE_GEOMETRIC_H 00038 00039 #ifndef INC_MIE_GEOSPATIAL_H 00040 #include <mie/geospatial.h> 00041 #endif 00042 00043 #ifndef INC_RVC_GEOMETRC_H 00044 #include <rvc/geometrc.h> 00045 #endif 00046 00047 00048 #ifndef GENERATING_DOXYGEN_OUTPUT 00049 class FILE_TEXT; 00050 #endif 00051 00052 00053 namespace MIE { 00054 00055 // ************************************************************************ 00056 00058 class JOB_GEOMETRIC : public JOB_GEOSPATIAL { 00059 public: 00060 JOB_GEOMETRIC ( 00061 const FORMAT& format, 00062 const SETTINGS& settings 00063 ); 00064 00065 virtual ~JOB_GEOMETRIC (); 00066 00067 bool GetTopologyBuilt ( 00068 ) const { return m_bTopologyBuilt; } 00069 00070 void SetTopologyBuilt ( 00071 bool val 00072 ) { m_bTopologyBuilt = val; } 00073 00074 // Remove destination tables if ImportEnd will extract from temp object 00075 void SetRemoveDestTables ( 00076 bool val 00077 ) { m_bRemoveTables = val; } 00078 00083 void SetSelectParms ( 00084 const RVC::GEOMETRIC::ELEMSELECTPARMS& SelectParms 00085 ) { m_SelectParms = SelectParms; m_bHasSelectParms = true; } 00086 00087 protected: 00088 00089 virtual ERRVALUE v_ImportBegin ( 00090 const RVC::OBJITEM& objitem 00091 ); 00092 00093 virtual ERRVALUE v_ImportEnd ( 00094 RVC::OBJITEM& objitem 00095 ); 00096 00097 virtual bool v_ImportNeedTempFile ( 00098 ) const; 00099 00100 private: 00101 #ifndef GENERATING_DOXYGEN_OUTPUT 00102 typedef JOB_GEOSPATIAL BASECLASS; 00103 00104 bool m_bTopologyBuilt; 00105 bool m_bRemoveTables; 00106 bool m_bHasSelectParms; 00107 RVC::GEOMETRIC::ELEMSELECTPARMS m_SelectParms; 00108 00109 bool v_IsGeometric () const; 00110 #endif // GENERATING_DOXYGEN_OUTPUT 00111 00112 }; 00113 00114 00116 class JOB_EXPORT_GEOMETRIC : public JOB_EXPORT { 00117 public: 00118 JOB_EXPORT_GEOMETRIC ( 00119 const FORMAT& format, 00120 const SETTINGS& settings 00121 ); 00122 00123 virtual ~JOB_EXPORT_GEOMETRIC (); 00124 00125 ERRVALUE ExportArcProjection ( 00126 FILE_TEXT& file, 00127 bool UseE00Format 00128 ); 00129 00132 ERRVALUE ExportTransPoints ( 00133 void* out, 00134 const void* in, 00135 int numpts, 00136 int numdim 00137 ); 00138 00142 const TRANS2D_MAPGEN& GetObjToImp ( 00143 ) const { return (m_ObjToImp); } 00144 00145 protected: 00147 virtual ERRVALUE v_ExportBeginObject ( 00148 const MISTRING& Dest 00149 ); 00150 00152 virtual ERRVALUE v_ExportEndObject ( 00153 const MISTRING& Dest 00154 ); 00155 00156 private: 00157 #ifndef GENERATING_DOXYGEN_OUTPUT 00158 typedef JOB_EXPORT BASECLASS; 00159 00160 TRANS2D_MAPGEN m_ObjToImp; 00161 00162 // Overrides from JOB_BASE 00163 bool v_IsGeometric () const; 00164 bool v_IsGeospatial () const; 00165 #endif // GENERATING_DOXYGEN_OUTPUT 00166 }; 00167 00168 00169 } // end of MIE NAMESPACE 00170 00171 #endif // INC_MIE_GEOMETRIC_H
1.6.1