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

48 lines
1006 B
C++

//-----------------------------------------------------------------------------+
// Copyright (C), 1998-2007, SH Software Co. Ltd.
// = FileName : PushProperty.cpp
// = Version : ver2.0
// = Author : zjq
// = CreateDate : 2002-09-09
// = Description: 属性类的定义
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#include "StdAfx.h"
#include "PushProperty.h"
#include "XAcGiViewDraw.h"
#include "XMasterProperties.h"
PushProperty::PushProperty(const AcDbEntity *ent, XExplodeDraw &dc)
{
ASSERT(ent);
dc.BackUpProperties(m_prop);
m_pDC = &dc;
XMasterProperties prop;
if (_tcsicmp(dc.Desc(), XAcGiViewDraw::Descriptor()) == 0)
{
prop.SetFromEx(ent);
}
else
{
prop.SetFrom(ent);
}
dc.RestoreProperties(prop);
}
PushProperty::PushProperty(XExplodeDraw &dc)
{
dc.BackUpProperties(m_prop);
m_pDC = &dc;
}
PushProperty::~PushProperty()
{
if (m_pDC)
{
m_pDC->RestoreProperties(m_prop);
}
}