107 lines
1.7 KiB
C++
107 lines
1.7 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, SH Software Co. Ltd.
|
|
// = FileName : XLayerTable 类
|
|
// = Version : ver2.0
|
|
// = Author : zjq
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: XLayerTable 声明
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _XLayerTable_H_
|
|
#define _XLayerTable_H_
|
|
|
|
#ifndef _SYMBOLTABLE_H_
|
|
#include "SymbolTable.h"
|
|
#endif
|
|
|
|
#ifndef _XASTRING_H_
|
|
#include "XAString.h"
|
|
#endif
|
|
|
|
#ifndef _XWCSTRING_H_
|
|
#include "XWString.h"
|
|
#endif
|
|
|
|
#ifndef _XGLOBALFUNC_H_
|
|
#include "XGlobalFunc.h"
|
|
#endif
|
|
|
|
class GEOAPI XLayerTable : public XSymbolTable
|
|
{
|
|
public:
|
|
XLayerTable();
|
|
XLayerTable(XLayerTable &);
|
|
XLayerTable(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
|
|
|
|
XString m_sName; // 2
|
|
XString m_sLineType; // 6
|
|
};
|
|
|
|
inline XLayerTable::XLayerTable()
|
|
{
|
|
assert(0);
|
|
}
|
|
|
|
inline XLayerTable::XLayerTable(XLayerTable &xLayTab)
|
|
{
|
|
assert(0);
|
|
}
|
|
|
|
inline int XLayerTable::Color()
|
|
{
|
|
return abs(m_nColor);
|
|
}
|
|
|
|
inline LPCTSTR XLayerTable::LineType()
|
|
{
|
|
TCHAR *pLType = m_sLineType;
|
|
|
|
return (LPCTSTR)pLType;
|
|
}
|
|
|
|
inline int XLayerTable::IsOff()
|
|
{
|
|
return (m_nColor < 0);
|
|
}
|
|
|
|
inline int XLayerTable::IsFrozen()
|
|
{
|
|
return (m_nFlag & 0x01);
|
|
}
|
|
|
|
inline int XLayerTable::IsFrozenNewViewPorts()
|
|
{
|
|
return (m_nFlag & 0x02);
|
|
}
|
|
|
|
inline int XLayerTable::IsLocked()
|
|
{
|
|
return (m_nFlag & 0x04);
|
|
}
|
|
|
|
inline int XLayerTable::IsCurrent()
|
|
{
|
|
XString sLayer;
|
|
xg_getvar(_T("CLAYER"), (TCHAR *)sLayer);
|
|
|
|
return !_tcsicmp(m_sName,sLayer);
|
|
}
|
|
|
|
#endif
|