Files
envi-code/SourceCode/Code2026/PipelineCmd/KTMtoTool.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

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__