STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
BitsType.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 
4 namespace Lextm.SharpSnmpLib.Mib.Elements.Types
5 {
6  public class BitsType : BaseType
7  {
8  private ValueMap _map;
9 
10  public BitsType(IModule module, string name, ISymbolEnumerator symbols)
11  : base(module, name)
12  {
13  _map = Lexer.DecodeEnumerations(symbols);
14  }
15 
16  public ValueMap Map
17  {
18  get { return _map; }
19  }
20 
21  public string this[int value]
22  {
23  get { return _map[value]; }
24  }
25  }
26 }
MIB Module interface.
Definition: IModule.cs:36
static ValueMap DecodeEnumerations(ISymbolEnumerator symbols)
Definition: Lexer.cs:534
BitsType(IModule module, string name, ISymbolEnumerator symbols)
Definition: BitsType.cs:10
Lexer class that parses MIB files into symbol list.
Definition: Lexer.cs:21