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

106 lines
1.9 KiB
C++

//-----------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TAcDbLayerTable 类
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
// = Description: TAcDbLayerTable 声明
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TACDBLAYERTABLE_H_
#define _TACDBLAYERTABLE_H_
#ifndef _TSYMBOLTABLERECORD_H_
#include "TSymbolTableRecord.h"
#endif
#ifndef _TACSTRING_H_
#include "TACString.h"
#endif
#ifndef _TWCSTRING_H_
#include "TWCString.h"
#endif
#ifndef _TCHGLOBALFUNC_H_
#include "TchGlobalFunc.h"
#endif
class GEOAPI TAcDbLayerTable : public TAcDbSymbolTable
{
public:
TAcDbLayerTable();
TAcDbLayerTable(TAcDbLayerTable &);
TAcDbLayerTable(const TCHAR *sym, int setnext = 0);
int IsOff();
int IsFrozen();
int IsFrozenNewViewPorts();
int IsLocked();
int IsCurrent();
int Color();
LPCTSTR LineType();
protected:
int m_nFlag; // 70
int m_nColor; // 62
TCString m_sName; // 2
TCString m_sLineType; // 6
};
inline TAcDbLayerTable::TAcDbLayerTable()
{
assert(0);
}
inline TAcDbLayerTable::TAcDbLayerTable(TAcDbLayerTable &xLayTab)
{
assert(0);
}
inline int TAcDbLayerTable::Color()
{
return abs(m_nColor);
}
inline LPCTSTR TAcDbLayerTable::LineType()
{
TCHAR *pLType = m_sLineType;
return (LPCTSTR)pLType;
}
inline int TAcDbLayerTable::IsOff()
{
return (m_nColor < 0);
}
inline int TAcDbLayerTable::IsFrozen()
{
return (m_nFlag & 0x01);
}
inline int TAcDbLayerTable::IsFrozenNewViewPorts()
{
return (m_nFlag & 0x02);
}
inline int TAcDbLayerTable::IsLocked()
{
return (m_nFlag & 0x04);
}
inline int TAcDbLayerTable::IsCurrent()
{
TCString sLayer;
TGGetVar(_T("CLAYER"), (TCHAR *)sLayer);
return !_tcsicmp(m_sName,sLayer);
}
#endif