Пример #1
0
        public SendTable(IBitStream bitstream)
        {
            var dataTable = new DP.FastNetmessages.SendTable();

            foreach (var prop in dataTable.Parse(bitstream))
            {
                var property = new SendTableProperty
                {
                    DataTableName    = prop.DtName,
                    HighValue        = prop.HighValue,
                    LowValue         = prop.LowValue,
                    Name             = prop.VarName,
                    NumberOfBits     = prop.NumBits,
                    NumberOfElements = prop.NumElements,
                    Priority         = prop.Priority,
                    RawFlags         = prop.Flags,
                    RawType          = prop.Type
                };

                Properties.Add(property);
            }

            Name  = dataTable.NetTableName;
            IsEnd = dataTable.IsEnd;
        }
Пример #2
0
 private bool IsPropExcluded(SendTable table, SendTableProperty prop)
 {
     return(CurrentExcludes.Exists(a => table.Name == a.DTName && prop.Name == a.VarName));
 }
Пример #3
0
 public FlattenedPropEntry(string propertyName, SendTableProperty prop, SendTableProperty arrayElementProp)
 {
     Prop             = prop;
     ArrayElementProp = arrayElementProp;
     PropertyName     = propertyName;
 }