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

53 lines
1.3 KiB
C++

#ifndef _CACULATERESULT_H__
#define _CACULATERESULT_H__
#if _MSC_VER > 1000
#pragma once
#endif
#include <list>
class CCaculateResult
{
public:
CCaculateResult();
CCaculateResult& operator = (const CCaculateResult& result);
public:
int m_nNumber; //避雷针编号
int m_nGroupNO; //避雷针账属组号
double m_dGroundRadius; //滚球半径
double m_dHeight; //避雷针高度
double m_dProRadius; //避雷针保护半径
AcGePoint3d m_ptGroundCenter; //滚球圆心
AcGePoint3d m_ptInsert; //避雷针插入点
AcDbObjectId m_id; //避雷针对象ID
AcGeDoubleArray m_arProHeight; //保护高度
};
typedef std::list<CCaculateResult> lstCltResult;
inline CCaculateResult& CCaculateResult::operator = (const CCaculateResult& result)
{
m_ptGroundCenter = result.m_ptGroundCenter;
m_dGroundRadius = result.m_dGroundRadius;
m_ptInsert = result.m_ptInsert;
m_dHeight = result.m_dHeight;
m_id = result.m_id;
m_dProRadius = result.m_dProRadius;
m_nNumber = result.m_nNumber;
m_nGroupNO = result.m_nGroupNO;
m_arProHeight.setLogicalLength(0);
m_arProHeight.append(result.m_arProHeight);
return *this;
}
#endif // !defined(AFX_CACULATERESULT_H__3B8D13E2_8321_4210_AD17_1BFB81D45B5D__INCLUDED_)