Exemple #1
0
 public ObjectGroup(string module, IList <Symbol> header, Lexer lexer)
 {
     _module = module;
     _name   = header[0].ToString();
     lexer.ParseOidValue(out _parent, out _value);
     _description = header.GetSingleValueString(Symbol.Description, "");
 }
Exemple #2
0
 public ObjectType(string module, IList <Symbol> header, Lexer lexer)
 {
     _module = module;
     _name   = header[0].ToString();
     ParseProperties(header);
     lexer.ParseOidValue(out _parent, out _value);
 }
Exemple #3
0
        public NotificationType(string module, IList <Symbol> header, Lexer lexer)
        {
            _module = module;
            _name   = header[0].ToString();
            lexer.ParseOidValue(out _parent, out _value);

            _description = header.GetSingleValueString(Symbol.Description, "");
            _objects     = header.GetValuesStringAvecAccolades(Symbol.Objects);
        }
Exemple #4
0
 /// <summary>
 /// Creates a <see cref="ObjectIdentity"/>.
 /// </summary>
 /// <param name="module">Module name</param>
 /// <param name="header">Header</param>
 /// <param name="lexer">Lexer</param>
 public ObjectIdentity(string module, IList <Symbol> header, Lexer lexer)
 {
     _module = module;
     _name   = header[0].ToString();
     lexer.ParseOidValue(out _parent, out _value);
     if (_parent == "0")
     {
         _parent = "ccitt";
     }
     _description = header.GetSingleValueString(Symbol.Description, "");
 }
Exemple #5
0
 /// <summary>
 /// Creates a <see cref="OidValueAssignment"/>.
 /// </summary>
 /// <param name="module">Module name</param>
 /// <param name="name">Name</param>
 /// <param name="lexer">Lexer</param>
 public OidValueAssignment(string module, string name, Lexer lexer)
 {
     _module = module;
     _name   = name;
     lexer.ParseOidValue(out _parent, out _value);
 }