aboutsummaryrefslogtreecommitdiff
path: root/lib/lwip/lwip/contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Types/BitsType.cs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lwip/lwip/contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Types/BitsType.cs')
-rw-r--r--lib/lwip/lwip/contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Types/BitsType.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/lwip/lwip/contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Types/BitsType.cs b/lib/lwip/lwip/contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Types/BitsType.cs
new file mode 100644
index 0000000..a64c8db
--- /dev/null
+++ b/lib/lwip/lwip/contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/Elements/Types/BitsType.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+
+namespace Lextm.SharpSnmpLib.Mib.Elements.Types
+{
+ public class BitsType : BaseType
+ {
+ private ValueMap _map;
+
+ public BitsType(IModule module, string name, ISymbolEnumerator symbols)
+ : base(module, name)
+ {
+ _map = Lexer.DecodeEnumerations(symbols);
+ }
+
+ public ValueMap Map
+ {
+ get { return _map; }
+ }
+
+ public string this[int value]
+ {
+ get { return _map[value]; }
+ }
+ }
+}