STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Sequence.cs
Go to the documentation of this file.
1 /*
2  * Created by SharpDevelop.
3  * User: lextm
4  * Date: 2008/5/21
5  * Time: 19:43
6  *
7  * To change this template use Tools | Options | Coding | Edit Standard Headers.
8  */
9 
10 
11 namespace Lextm.SharpSnmpLib.Mib.Elements.Types
12 {
16  public sealed class Sequence : BaseType
17  {
24  public Sequence(IModule module, string name, ISymbolEnumerator symbols)
25  : base(module, name)
26  {
27  // parse between ( )
28  Symbol temp = symbols.NextNonEOLSymbol();
29  int bracketSection = 0;
30  temp.Expect(Symbol.OpenBracket);
31  bracketSection++;
32  while (bracketSection > 0)
33  {
34  temp = symbols.NextNonEOLSymbol();
35  if (temp == Symbol.OpenBracket)
36  {
37  bracketSection++;
38  }
39  else if (temp == Symbol.CloseBracket)
40  {
41  bracketSection--;
42  }
43  }
44  }
45  }
46 }
The SEQUENCE type represents a set of specified types. This is roughtly analogous to a ...
Definition: Sequence.cs:16
MIB Module interface.
Definition: IModule.cs:36
static readonly Symbol OpenBracket
Definition: Symbol.cs:185
static readonly Symbol CloseBracket
Definition: Symbol.cs:186
Description of Symbol.
Definition: Symbol.cs:20
Sequence(IModule module, string name, ISymbolEnumerator symbols)
Creates a Sequence instance.
Definition: Sequence.cs:24