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

42 lines
1.2 KiB
C++

#pragma once
class AecDbObjXDataMap;
#ifndef NDEBUG
// 使得Debug版本,能够正确实现ASSERT和VERIFY(在没有_DEBUG宏的情况下)
#ifdef ASSERT
#undef ASSERT
#endif
#define ASSERT(n) assert(n)
#ifdef VERIFY
#undef VERIFY
#endif
#define VERIFY(n) assert(n)
#endif
class DuctlineTools
{
public:
static LPCTSTR gLayer_Pipe_Dim;
static LPCTSTR gTextStyle_Pipe_Dim;
public:
static CString getCurrentPipeSysTblName();
static AcDbObjectId getLtByPipeSys(LPCTSTR sys, bool bCenter);
static int getColorByPipeSys(LPCTSTR sys, bool bCenter);
static double getLwByPipeSys(LPCTSTR sys, bool bCenter); // 管线内外线线宽
static AcDbObjectId getLyByPipeSys(LPCTSTR sys, bool bCenter, bool bUpdate = false); // 管线内外线图层
static AcDbObjectId getLyForPipe(LPCTSTR sys, bool bUpdate = false);
static bool getSqliteDB(LPCTSTR dbName, CUIISQLiteServer & db);
static AcDbObjectId AecInitLayerEx(LPCTSTR pszLayer,LPCTSTR pszSys,int nColorIndex,LPCTSTR pszLineType,AcDbDatabase* pDb,bool bUpdate = false);
// 设置图层系统
static bool setLayerSys(CUIISQLiteServer *pDb, CStringArray &ar);
// 获得系统
static bool getLayerSys(CUIISQLiteServer *pDb, CStringArray &ar);
};