mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-05 17:28:02 +00:00
ac46e42aa2
... from http://git.savannah.gnu.org/cgit/lwip/lwip-contrib.git/ into contrib/ subdir, STABLE-2_1_0_RELEASE tag lwIP contrib is now officially frozen TODO: Fix build
47 lines
1.0 KiB
C#
47 lines
1.0 KiB
C#
using System;
|
|
|
|
namespace Lextm.SharpSnmpLib.Mib.Elements.Entities
|
|
{
|
|
public abstract class EntityBase: IEntity
|
|
{
|
|
private readonly IModule _module;
|
|
private string _parent;
|
|
private readonly uint _value;
|
|
private readonly string _name;
|
|
|
|
public EntityBase(IModule module, SymbolList preAssignSymbols, ISymbolEnumerator symbols)
|
|
{
|
|
_module = module;
|
|
_name = preAssignSymbols[0].ToString();
|
|
|
|
Lexer.ParseOidValue(symbols, out _parent, out _value);
|
|
}
|
|
|
|
public IModule Module
|
|
{
|
|
get { return _module; }
|
|
}
|
|
|
|
public string Parent
|
|
{
|
|
get { return _parent; }
|
|
set { _parent = value; }
|
|
}
|
|
|
|
public uint Value
|
|
{
|
|
get { return _value; }
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get { return _name; }
|
|
}
|
|
|
|
public virtual string Description
|
|
{
|
|
get { return string.Empty; }
|
|
}
|
|
}
|
|
}
|