Files
ThingsGateway/framework/Foundation/ThingsGateway.Foundation.Adapter.OPCDA/COM/Rcw/BrowseElement.cs
2023-09-30 23:05:53 +08:00

103 lines
2.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#region copyright
//------------------------------------------------------------------------------
// 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充
// 此代码版权除特别声明外的代码归作者本人Diego所有
// 源代码使用协议遵循本仓库的开源协议及附加协议
// Gitee源代码仓库https://gitee.com/diego2098/ThingsGateway
// Github源代码仓库https://github.com/kimdiego2098/ThingsGateway
// 使用文档https://diego2098.gitee.io/thingsgateway-docs/
// QQ群605534569
//------------------------------------------------------------------------------
#endregion
namespace ThingsGateway.Foundation.Adapter.OPCDA.Rcw;
#pragma warning disable CS1591 // 缺少对公共可见类型或成员的 XML 注释
[Serializable]
public class BrowseElement : ICloneable
{
private bool m_hasChildren;
private bool m_isItem;
private string m_itemName;
private string m_itemPath;
private string m_name;
private ItemProperty[] m_properties = new ItemProperty[0];
public bool HasChildren
{
get
{
return m_hasChildren;
}
set
{
m_hasChildren = value;
}
}
public bool IsItem
{
get
{
return m_isItem;
}
set
{
m_isItem = value;
}
}
public string ItemName
{
get
{
return m_itemName;
}
set
{
m_itemName = value;
}
}
public string ItemPath
{
get
{
return m_itemPath;
}
set
{
m_itemPath = value;
}
}
public string Name
{
get
{
return m_name;
}
set
{
m_name = value;
}
}
public ItemProperty[] Properties
{
get
{
return m_properties;
}
set
{
m_properties = value;
}
}
public virtual object Clone()
{
BrowseElement obj = (BrowseElement)MemberwiseClone();
obj.m_properties = (ItemProperty[])Comn.Convert.Clone(m_properties);
return obj;
}
}