46 lines
923 B
C++
46 lines
923 B
C++
#ifndef _KTMTOTOOL_H__
|
|
#define _KTMTOTOOL_H__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "EarthwormDef.h"
|
|
|
|
class KTMtoTool
|
|
{
|
|
public:
|
|
KTMtoTool();
|
|
virtual ~KTMtoTool();
|
|
|
|
int DoMto();
|
|
|
|
void SetDbSrv(KTADODatabase* pDbSrv);
|
|
|
|
private:
|
|
|
|
int ImpMto(const AcDbObjectIdArray& arIDs);
|
|
|
|
int ImpPipeMto(AcArray<AecInterface> &arInfs,const KPipe::PipeParam& param1, KTObjXDataMap &objXData,double dLen,CMapStringToString& mapKey2Len);
|
|
|
|
//src-->ImpPointMto
|
|
int ImpFitMto(AcArray<AecInterface> &arInfs,KTObjXDataMap& objXData,CMapStringToString& mapKey2Len);
|
|
int ImpEquMto(AcArray<AecInterface> &arInfs,KTObjXDataMap &objXData, CMapStringToString &mapKey2Len);
|
|
|
|
int EmptyTempTbl();
|
|
|
|
private:
|
|
|
|
KTADODatabase* m_pDbSrv;
|
|
KTObjXDataMap m_xDataMap;
|
|
CString m_sDrawNo;
|
|
CStringList m_lstPipeLineNos;
|
|
};
|
|
|
|
inline void KTMtoTool::SetDbSrv(KTADODatabase* pDbSrv)
|
|
{
|
|
m_pDbSrv = pDbSrv;
|
|
}
|
|
|
|
#endif //_KTMTOTOOL_H__
|