1 using System.Collections.Generic;
3 namespace Lextm.SharpSnmpLib.Mib.Elements.Types
28 Types? t = GetExactType(type);
29 type.Assert(t.HasValue,
"Unknown symbol for unsigned type!");
35 current.Assert((_type !=
Types.Counter64),
"Ranges are not supported for Counter64 type!");
39 current.Assert(!_ranges.
IsSizeDeclaration,
"SIZE keyword is not allowed for ranges of unsigned types!");
54 get {
return _ranges; }
62 return Types.Unsigned32;
72 return Types.Counter32;
77 return Types.TimeTicks;
87 return Types.Counter32;
92 return Types.Counter64;
98 internal static bool IsUnsignedType(
Symbol symbol)
100 return GetExactType(symbol).HasValue;
static readonly Symbol Gauge32
static readonly Symbol Unsigned32
static ValueRanges DecodeRanges(ISymbolEnumerator symbols)
static readonly Symbol Gauge
static readonly Symbol Counter32
static readonly Symbol Counter
bool PutBack(Symbol item)
static readonly Symbol OpenParentheses
Lexer class that parses MIB files into symbol list.
static readonly Symbol Counter64
static readonly Symbol TimeTicks
UnsignedType(IModule module, string name, Symbol type, ISymbolEnumerator symbols)