STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
EntityBase.cs
Go to the documentation of this file.
1 using System;
2 
3 namespace Lextm.SharpSnmpLib.Mib.Elements.Entities
4 {
5  public abstract class EntityBase: IEntity
6  {
7  private readonly IModule _module;
8  private string _parent;
9  private readonly uint _value;
10  private readonly string _name;
11 
12  public EntityBase(IModule module, SymbolList preAssignSymbols, ISymbolEnumerator symbols)
13  {
14  _module = module;
15  _name = preAssignSymbols[0].ToString();
16 
17  Lexer.ParseOidValue(symbols, out _parent, out _value);
18  }
19 
20  public IModule Module
21  {
22  get { return _module; }
23  }
24 
25  public string Parent
26  {
27  get { return _parent; }
28  set { _parent = value; }
29  }
30 
31  public uint Value
32  {
33  get { return _value; }
34  }
35 
36  public string Name
37  {
38  get { return _name; }
39  }
40 
41  public virtual string Description
42  {
43  get { return string.Empty; }
44  }
45  }
46 }
EntityBase(IModule module, SymbolList preAssignSymbols, ISymbolEnumerator symbols)
Definition: EntityBase.cs:12
MIB Module interface.
Definition: IModule.cs:36
static void ParseOidValue(ISymbolEnumerator symbols, out string parent, out uint value)
Definition: Lexer.cs:336
Lexer class that parses MIB files into symbol list.
Definition: Lexer.cs:21
Basic interface for all elements building up the MIB tree, thus having an OID as value.
Definition: IEntity.cs:34