Esempio n. 1
0
            public static TestType Load(IValueStream stream)
            {
                stream.EnterSequence();
                var nullValue     = stream.GetNull();
                var booleanValue  = stream.GetBoolean();
                var optionalValue = Value <Option <byte> > .Loader(stream);

                var         choice      = stream.EnterChoice();
                ITestChoice choiceValue = null;

                switch (choice)
                {
                case 0:
                    choiceValue = FloatChoice.Load(stream);
                    break;

                case 1:
                    choiceValue = DoubleChoice.Load(stream);
                    break;

                case 2:
                    choiceValue = StringChoice.Load(stream);
                    break;
                }
                stream.LeaveChoice();

                var arrayValue = ReadOnlyArray <ushort> .Load(stream);

                return(new TestType(nullValue, booleanValue, optionalValue, choiceValue, arrayValue));
            }
Esempio n. 2
0
        public static CalendarEntry Load(IValueStream stream)
        {
            CalendarEntry ret = null;
            Tags          tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.Date:
                ret = Value <DateWrapper> .Load(stream);

                break;

            case Tags.DateRange:
                ret = Value <DateRangeWrapper> .Load(stream);

                break;

            case Tags.WeekNDay:
                ret = Value <WeekNDayWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 3
0
        public static TimeStamp Load(IValueStream stream)
        {
            TimeStamp ret = null;
            Tags      tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.Time:
                ret = Value <TimeWrapper> .Load(stream);

                break;

            case Tags.SequenceNumber:
                ret = Value <SequenceNumberWrapper> .Load(stream);

                break;

            case Tags.DateTime:
                ret = Value <DateTimeWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 4
0
            public static RangeType Load(IValueStream stream)
            {
                RangeType ret = null;
                Tags      tag = (Tags)stream.EnterChoice();

                switch (tag)
                {
                case Tags.ByPosition:
                    ret = Value <ByPosition> .Load(stream);

                    break;

                case Tags.BySequenceNumber:
                    ret = Value <BySequenceNumber> .Load(stream);

                    break;

                case Tags.ByTime:
                    ret = Value <ByTime> .Load(stream);

                    break;

                default:
                    throw new Exception();
                }
                stream.LeaveChoice();
                return(ret);
            }
Esempio n. 5
0
        public static ExtendedParameter Load(IValueStream stream)
        {
            ExtendedParameter ret = null;
            Tags tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.Null:
                ret = Value <NullWrapper> .Load(stream);

                break;

            case Tags.Real:
                ret = Value <RealWrapper> .Load(stream);

                break;

            case Tags.Integer:
                ret = Value <IntegerWrapper> .Load(stream);

                break;

            case Tags.Boolean:
                ret = Value <BooleanWrapper> .Load(stream);

                break;

            case Tags.Double:
                ret = Value <DoubleWrapper> .Load(stream);

                break;

            case Tags.Octet:
                ret = Value <OctetWrapper> .Load(stream);

                break;

            case Tags.Bitstring:
                ret = Value <BitstringWrapper> .Load(stream);

                break;

            case Tags.Enum:
                ret = Value <EnumWrapper> .Load(stream);

                break;

            case Tags.Reference:
                ret = Value <ReferenceWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 6
0
 public static COVCriteria Load(IValueStream stream)
 {
     COVCriteria ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.Bitmask:
             ret = Value<BitmaskWrapper>.Load(stream);
             break;
         case Tags.ReferencedPropertyIncrement:
             ret = Value<ReferencedPropertyIncrementWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 7
0
 public static Scale Load(IValueStream stream)
 {
     Scale ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.FloatScale:
             ret = Value<FloatScaleWrapper>.Load(stream);
             break;
         case Tags.IntegerScale:
             ret = Value<IntegerScaleWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 8
0
 public static NewValue Load(IValueStream stream)
 {
     NewValue ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.ChangedBits:
             ret = Value<ChangedBitsWrapper>.Load(stream);
             break;
         case Tags.ChangedValue:
             ret = Value<ChangedValueWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 9
0
 public static ClientCOV Load(IValueStream stream)
 {
     ClientCOV ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.RealIncrement:
             ret = Value<RealIncrementWrapper>.Load(stream);
             break;
         case Tags.DefaultIncrement:
             ret = Value<DefaultIncrementWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 10
0
 public static Recipient Load(IValueStream stream)
 {
     Recipient ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.Device:
             ret = Value<DeviceWrapper>.Load(stream);
             break;
         case Tags.Address:
             ret = Value<AddressWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 11
0
 public static AtomicWriteFileAck Load(IValueStream stream)
 {
     AtomicWriteFileAck ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.FileStartPosition:
             ret = Value<FileStartPositionWrapper>.Load(stream);
             break;
         case Tags.FileStartRecord:
             ret = Value<FileStartRecordWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 12
0
 public static CalendarEntry Load(IValueStream stream)
 {
     CalendarEntry ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.Date:
             ret = Value<DateWrapper>.Load(stream);
             break;
         case Tags.DateRange:
             ret = Value<DateRangeWrapper>.Load(stream);
             break;
         case Tags.WeekNDay:
             ret = Value<WeekNDayWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 13
0
 public static TimeStamp Load(IValueStream stream)
 {
     TimeStamp ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.Time:
             ret = Value<TimeWrapper>.Load(stream);
             break;
         case Tags.SequenceNumber:
             ret = Value<SequenceNumberWrapper>.Load(stream);
             break;
         case Tags.DateTime:
             ret = Value<DateTimeWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 14
0
        public static PriorityValue Load(IValueStream stream)
        {
            PriorityValue ret = null;
            Tags          tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.Null:
                ret = Value <NullWrapper> .Load(stream);

                break;

            case Tags.Real:
                ret = Value <RealWrapper> .Load(stream);

                break;

            case Tags.Binary:
                ret = Value <BinaryWrapper> .Load(stream);

                break;

            case Tags.Integer:
                ret = Value <IntegerWrapper> .Load(stream);

                break;

            case Tags.ConstructedValue:
                ret = Value <ConstructedValueWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 15
0
            public static MessageClassType Load(IValueStream stream)
            {
                MessageClassType ret = null;
                Tags             tag = (Tags)stream.EnterChoice();

                switch (tag)
                {
                case Tags.Numeric:
                    ret = Value <NumericWrapper> .Load(stream);

                    break;

                case Tags.Character:
                    ret = Value <CharacterWrapper> .Load(stream);

                    break;

                default:
                    throw new Exception();
                }
                stream.LeaveChoice();
                return(ret);
            }
Esempio n. 16
0
        public static Recipient Load(IValueStream stream)
        {
            Recipient ret = null;
            Tags      tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.Device:
                ret = Value <DeviceWrapper> .Load(stream);

                break;

            case Tags.Address:
                ret = Value <AddressWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 17
0
            public static AccessMethodType Load(IValueStream stream)
            {
                AccessMethodType ret = null;
                Tags             tag = (Tags)stream.EnterChoice();

                switch (tag)
                {
                case Tags.StreamAccess:
                    ret = Value <StreamAccess> .Load(stream);

                    break;

                case Tags.RecordAccess:
                    ret = Value <RecordAccess> .Load(stream);

                    break;

                default:
                    throw new Exception();
                }
                stream.LeaveChoice();
                return(ret);
            }
Esempio n. 18
0
        public static NewValue Load(IValueStream stream)
        {
            NewValue ret = null;
            Tags     tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.ChangedBits:
                ret = Value <ChangedBitsWrapper> .Load(stream);

                break;

            case Tags.ChangedValue:
                ret = Value <ChangedValueWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 19
0
        public static Scale Load(IValueStream stream)
        {
            Scale ret = null;
            Tags  tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.FloatScale:
                ret = Value <FloatScaleWrapper> .Load(stream);

                break;

            case Tags.IntegerScale:
                ret = Value <IntegerScaleWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 20
0
        public static COVCriteria Load(IValueStream stream)
        {
            COVCriteria ret = null;
            Tags        tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.Bitmask:
                ret = Value <BitmaskWrapper> .Load(stream);

                break;

            case Tags.ReferencedPropertyIncrement:
                ret = Value <ReferencedPropertyIncrementWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 21
0
        public static ClientCOV Load(IValueStream stream)
        {
            ClientCOV ret = null;
            Tags      tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.RealIncrement:
                ret = Value <RealIncrementWrapper> .Load(stream);

                break;

            case Tags.DefaultIncrement:
                ret = Value <DefaultIncrementWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 22
0
            public static ReadResultType Load(IValueStream stream)
            {
                ReadResultType ret = null;
                Tags           tag = (Tags)stream.EnterChoice();

                switch (tag)
                {
                case Tags.PropertyValue:
                    ret = Value <PropertyValueWrapper> .Load(stream);

                    break;

                case Tags.PropertyAccessError:
                    ret = Value <PropertyAccessErrorWrapper> .Load(stream);

                    break;

                default:
                    throw new Exception();
                }
                stream.LeaveChoice();
                return(ret);
            }
Esempio n. 23
0
            public static PeriodType Load(IValueStream stream)
            {
                PeriodType ret = null;
                Tags       tag = (Tags)stream.EnterChoice();

                switch (tag)
                {
                case Tags.CalendarEntry:
                    ret = Value <CalendarEntryWrapper> .Load(stream);

                    break;

                case Tags.CalendarReference:
                    ret = Value <CalendarReferenceWrapper> .Load(stream);

                    break;

                default:
                    throw new Exception();
                }
                stream.LeaveChoice();
                return(ret);
            }
Esempio n. 24
0
            public static ObjectType Load(IValueStream stream)
            {
                ObjectType ret = null;
                Tags       tag = (Tags)stream.EnterChoice();

                switch (tag)
                {
                case Tags.ObjectIdentifier:
                    ret = Value <ObjectIdentifierWrapper> .Load(stream);

                    break;

                case Tags.ObjectName:
                    ret = Value <ObjectNameWrapper> .Load(stream);

                    break;

                default:
                    throw new Exception();
                }
                stream.LeaveChoice();
                return(ret);
            }
Esempio n. 25
0
        public static AtomicWriteFileAck Load(IValueStream stream)
        {
            AtomicWriteFileAck ret = null;
            Tags tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.FileStartPosition:
                ret = Value <FileStartPositionWrapper> .Load(stream);

                break;

            case Tags.FileStartRecord:
                ret = Value <FileStartRecordWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 26
0
 public static PropertyStates Load(IValueStream stream)
 {
     PropertyStates ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.BooleanValue:
             ret = Value<BooleanValueWrapper>.Load(stream);
             break;
         case Tags.BinaryValue:
             ret = Value<BinaryValueWrapper>.Load(stream);
             break;
         case Tags.EventType:
             ret = Value<EventTypeWrapper>.Load(stream);
             break;
         case Tags.Polarity:
             ret = Value<PolarityWrapper>.Load(stream);
             break;
         case Tags.ProgramChange:
             ret = Value<ProgramChangeWrapper>.Load(stream);
             break;
         case Tags.ProgramState:
             ret = Value<ProgramStateWrapper>.Load(stream);
             break;
         case Tags.ReasonForHalt:
             ret = Value<ReasonForHaltWrapper>.Load(stream);
             break;
         case Tags.Reliability:
             ret = Value<ReliabilityWrapper>.Load(stream);
             break;
         case Tags.State:
             ret = Value<StateWrapper>.Load(stream);
             break;
         case Tags.SystemStatus:
             ret = Value<SystemStatusWrapper>.Load(stream);
             break;
         case Tags.Units:
             ret = Value<UnitsWrapper>.Load(stream);
             break;
         case Tags.UnsignedValue:
             ret = Value<UnsignedValueWrapper>.Load(stream);
             break;
         case Tags.LifeSafetyMode:
             ret = Value<LifeSafetyModeWrapper>.Load(stream);
             break;
         case Tags.LifeSafetyState:
             ret = Value<LifeSafetyStateWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 27
0
        public static ConfirmedServiceAck Load(IValueStream stream)
        {
            ConfirmedServiceAck ret = null;
            Tags tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.GetAlarmSummary:
                ret = Value <GetAlarmSummaryWrapper> .Load(stream);

                break;

            case Tags.GetEnrollmentSummary:
                ret = Value <GetEnrollmentSummaryWrapper> .Load(stream);

                break;

            case Tags.GetEventInformation:
                ret = Value <GetEventInformationWrapper> .Load(stream);

                break;

            case Tags.AtomicReadFile:
                ret = Value <AtomicReadFileWrapper> .Load(stream);

                break;

            case Tags.AtomicWriteFile:
                ret = Value <AtomicWriteFileWrapper> .Load(stream);

                break;

            case Tags.CreateObject:
                ret = Value <CreateObjectWrapper> .Load(stream);

                break;

            case Tags.ReadProperty:
                ret = Value <ReadPropertyWrapper> .Load(stream);

                break;

            case Tags.ReadPropertyConditional:
                ret = Value <ReadPropertyConditionalWrapper> .Load(stream);

                break;

            case Tags.ReadPropertyMultiple:
                ret = Value <ReadPropertyMultipleWrapper> .Load(stream);

                break;

            case Tags.ReadRange:
                ret = Value <ReadRangeWrapper> .Load(stream);

                break;

            case Tags.ConfirmedPrivateTransfer:
                ret = Value <ConfirmedPrivateTransferWrapper> .Load(stream);

                break;

            case Tags.VtOpen:
                ret = Value <VtOpenWrapper> .Load(stream);

                break;

            case Tags.VtData:
                ret = Value <VtDataWrapper> .Load(stream);

                break;

            case Tags.Authenticate:
                ret = Value <AuthenticateWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
 public static UnconfirmedServiceRequest Load(IValueStream stream)
 {
     UnconfirmedServiceRequest ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.IAm:
             ret = Value<IAmWrapper>.Load(stream);
             break;
         case Tags.IHave:
             ret = Value<IHaveWrapper>.Load(stream);
             break;
         case Tags.UnconfirmedCOVNotification:
             ret = Value<UnconfirmedCOVNotificationWrapper>.Load(stream);
             break;
         case Tags.UnconfirmedEventNotification:
             ret = Value<UnconfirmedEventNotificationWrapper>.Load(stream);
             break;
         case Tags.UnconfirmedPrivateTransfer:
             ret = Value<UnconfirmedPrivateTransferWrapper>.Load(stream);
             break;
         case Tags.UnconfirmedTextMessage:
             ret = Value<UnconfirmedTextMessageWrapper>.Load(stream);
             break;
         case Tags.TimeSynchronization:
             ret = Value<TimeSynchronizationWrapper>.Load(stream);
             break;
         case Tags.WhoHas:
             ret = Value<WhoHasWrapper>.Load(stream);
             break;
         case Tags.WhoIs:
             ret = Value<WhoIsWrapper>.Load(stream);
             break;
         case Tags.UtcTimeSynchronization:
             ret = Value<UtcTimeSynchronizationWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 29
0
            public static TestType Load(IValueStream stream)
            {
                stream.EnterSequence();
                var nullValue = stream.GetNull();
                var booleanValue = stream.GetBoolean();
                var optionalValue = Value<Option<byte>>.Loader(stream);

                var choice = stream.EnterChoice();
                ITestChoice choiceValue = null;
                switch (choice)
                {
                    case 0:
                        choiceValue = FloatChoice.Load(stream);
                        break;
                    case 1:
                        choiceValue = DoubleChoice.Load(stream);
                        break;
                    case 2:
                        choiceValue = StringChoice.Load(stream);
                        break;
                }
                stream.LeaveChoice();

                var arrayValue = ReadOnlyArray<ushort>.Load(stream);

                return new TestType(nullValue, booleanValue, optionalValue, choiceValue, arrayValue);
            }
Esempio n. 30
0
            public static LogDatumType Load(IValueStream stream)
            {
                LogDatumType ret = null;
                Tags         tag = (Tags)stream.EnterChoice();

                switch (tag)
                {
                case Tags.LogStatus:
                    ret = Value <LogStatusWrapper> .Load(stream);

                    break;

                case Tags.BooleanValue:
                    ret = Value <BooleanValueWrapper> .Load(stream);

                    break;

                case Tags.RealValue:
                    ret = Value <RealValueWrapper> .Load(stream);

                    break;

                case Tags.EnumValue:
                    ret = Value <EnumValueWrapper> .Load(stream);

                    break;

                case Tags.UnsignedValue:
                    ret = Value <UnsignedValueWrapper> .Load(stream);

                    break;

                case Tags.SignedValue:
                    ret = Value <SignedValueWrapper> .Load(stream);

                    break;

                case Tags.BitstringValue:
                    ret = Value <BitstringValueWrapper> .Load(stream);

                    break;

                case Tags.NullValue:
                    ret = Value <NullValueWrapper> .Load(stream);

                    break;

                case Tags.Failure:
                    ret = Value <FailureWrapper> .Load(stream);

                    break;

                case Tags.TimeChange:
                    ret = Value <TimeChangeWrapper> .Load(stream);

                    break;

                case Tags.AnyValue:
                    ret = Value <AnyValueWrapper> .Load(stream);

                    break;

                default:
                    throw new Exception();
                }
                stream.LeaveChoice();
                return(ret);
            }
Esempio n. 31
0
 public static PriorityValue Load(IValueStream stream)
 {
     PriorityValue ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.Null:
             ret = Value<NullWrapper>.Load(stream);
             break;
         case Tags.Real:
             ret = Value<RealWrapper>.Load(stream);
             break;
         case Tags.Binary:
             ret = Value<BinaryWrapper>.Load(stream);
             break;
         case Tags.Integer:
             ret = Value<IntegerWrapper>.Load(stream);
             break;
         case Tags.ConstructedValue:
             ret = Value<ConstructedValueWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 32
0
        public static PropertyStates Load(IValueStream stream)
        {
            PropertyStates ret = null;
            Tags           tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.BooleanValue:
                ret = Value <BooleanValueWrapper> .Load(stream);

                break;

            case Tags.BinaryValue:
                ret = Value <BinaryValueWrapper> .Load(stream);

                break;

            case Tags.EventType:
                ret = Value <EventTypeWrapper> .Load(stream);

                break;

            case Tags.Polarity:
                ret = Value <PolarityWrapper> .Load(stream);

                break;

            case Tags.ProgramChange:
                ret = Value <ProgramChangeWrapper> .Load(stream);

                break;

            case Tags.ProgramState:
                ret = Value <ProgramStateWrapper> .Load(stream);

                break;

            case Tags.ReasonForHalt:
                ret = Value <ReasonForHaltWrapper> .Load(stream);

                break;

            case Tags.Reliability:
                ret = Value <ReliabilityWrapper> .Load(stream);

                break;

            case Tags.State:
                ret = Value <StateWrapper> .Load(stream);

                break;

            case Tags.SystemStatus:
                ret = Value <SystemStatusWrapper> .Load(stream);

                break;

            case Tags.Units:
                ret = Value <UnitsWrapper> .Load(stream);

                break;

            case Tags.UnsignedValue:
                ret = Value <UnsignedValueWrapper> .Load(stream);

                break;

            case Tags.LifeSafetyMode:
                ret = Value <LifeSafetyModeWrapper> .Load(stream);

                break;

            case Tags.LifeSafetyState:
                ret = Value <LifeSafetyStateWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 33
0
 public static ObjectSpecifierType Load(IValueStream stream)
 {
     ObjectSpecifierType ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.ObjectType:
             ret = Value<ObjectTypeWrapper>.Load(stream);
             break;
         case Tags.ObjectIdentifier:
             ret = Value<ObjectIdentifierWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 34
0
 public static NotificationParameters Load(IValueStream stream)
 {
     NotificationParameters ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.ChangeOfBitstring:
             ret = Value<ChangeOfBitstring>.Load(stream);
             break;
         case Tags.ChangeOfState:
             ret = Value<ChangeOfState>.Load(stream);
             break;
         case Tags.ChangeOfValue:
             ret = Value<ChangeOfValue>.Load(stream);
             break;
         case Tags.CommandFailure:
             ret = Value<CommandFailure>.Load(stream);
             break;
         case Tags.FloatingLimit:
             ret = Value<FloatingLimit>.Load(stream);
             break;
         case Tags.OutOfRange:
             ret = Value<OutOfRange>.Load(stream);
             break;
         case Tags.ComplexEventType:
             ret = Value<ComplexEventTypeWrapper>.Load(stream);
             break;
         case Tags.ChangeOfLifeSafety:
             ret = Value<ChangeOfLifeSafety>.Load(stream);
             break;
         case Tags.Extended:
             ret = Value<Extended>.Load(stream);
             break;
         case Tags.BufferReady:
             ret = Value<BufferReady>.Load(stream);
             break;
         case Tags.UnsignedRange:
             ret = Value<UnsignedRange>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 35
0
 public static ExtendedParameter Load(IValueStream stream)
 {
     ExtendedParameter ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.Null:
             ret = Value<NullWrapper>.Load(stream);
             break;
         case Tags.Real:
             ret = Value<RealWrapper>.Load(stream);
             break;
         case Tags.Integer:
             ret = Value<IntegerWrapper>.Load(stream);
             break;
         case Tags.Boolean:
             ret = Value<BooleanWrapper>.Load(stream);
             break;
         case Tags.Double:
             ret = Value<DoubleWrapper>.Load(stream);
             break;
         case Tags.Octet:
             ret = Value<OctetWrapper>.Load(stream);
             break;
         case Tags.Bitstring:
             ret = Value<BitstringWrapper>.Load(stream);
             break;
         case Tags.Enum:
             ret = Value<EnumWrapper>.Load(stream);
             break;
         case Tags.Reference:
             ret = Value<ReferenceWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 36
0
 public static ReadResultType Load(IValueStream stream)
 {
     ReadResultType ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.PropertyValue:
             ret = Value<PropertyValueWrapper>.Load(stream);
             break;
         case Tags.PropertyAccessError:
             ret = Value<PropertyAccessErrorWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 37
0
        public static NotificationParameters Load(IValueStream stream)
        {
            NotificationParameters ret = null;
            Tags tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.ChangeOfBitstring:
                ret = Value <ChangeOfBitstring> .Load(stream);

                break;

            case Tags.ChangeOfState:
                ret = Value <ChangeOfState> .Load(stream);

                break;

            case Tags.ChangeOfValue:
                ret = Value <ChangeOfValue> .Load(stream);

                break;

            case Tags.CommandFailure:
                ret = Value <CommandFailure> .Load(stream);

                break;

            case Tags.FloatingLimit:
                ret = Value <FloatingLimit> .Load(stream);

                break;

            case Tags.OutOfRange:
                ret = Value <OutOfRange> .Load(stream);

                break;

            case Tags.ComplexEventType:
                ret = Value <ComplexEventTypeWrapper> .Load(stream);

                break;

            case Tags.ChangeOfLifeSafety:
                ret = Value <ChangeOfLifeSafety> .Load(stream);

                break;

            case Tags.Extended:
                ret = Value <Extended> .Load(stream);

                break;

            case Tags.BufferReady:
                ret = Value <BufferReady> .Load(stream);

                break;

            case Tags.UnsignedRange:
                ret = Value <UnsignedRange> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 38
0
 public static AccessMethodType Load(IValueStream stream)
 {
     AccessMethodType ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.StreamAccess:
             ret = Value<StreamAccess>.Load(stream);
             break;
         case Tags.RecordAccess:
             ret = Value<RecordAccess>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 39
0
 public static PeriodType Load(IValueStream stream)
 {
     PeriodType ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.CalendarEntry:
             ret = Value<CalendarEntryWrapper>.Load(stream);
             break;
         case Tags.CalendarReference:
             ret = Value<CalendarReferenceWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 40
0
 public static ConfirmedServiceAck Load(IValueStream stream)
 {
     ConfirmedServiceAck ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.GetAlarmSummary:
             ret = Value<GetAlarmSummaryWrapper>.Load(stream);
             break;
         case Tags.GetEnrollmentSummary:
             ret = Value<GetEnrollmentSummaryWrapper>.Load(stream);
             break;
         case Tags.GetEventInformation:
             ret = Value<GetEventInformationWrapper>.Load(stream);
             break;
         case Tags.AtomicReadFile:
             ret = Value<AtomicReadFileWrapper>.Load(stream);
             break;
         case Tags.AtomicWriteFile:
             ret = Value<AtomicWriteFileWrapper>.Load(stream);
             break;
         case Tags.CreateObject:
             ret = Value<CreateObjectWrapper>.Load(stream);
             break;
         case Tags.ReadProperty:
             ret = Value<ReadPropertyWrapper>.Load(stream);
             break;
         case Tags.ReadPropertyConditional:
             ret = Value<ReadPropertyConditionalWrapper>.Load(stream);
             break;
         case Tags.ReadPropertyMultiple:
             ret = Value<ReadPropertyMultipleWrapper>.Load(stream);
             break;
         case Tags.ReadRange:
             ret = Value<ReadRangeWrapper>.Load(stream);
             break;
         case Tags.ConfirmedPrivateTransfer:
             ret = Value<ConfirmedPrivateTransferWrapper>.Load(stream);
             break;
         case Tags.VtOpen:
             ret = Value<VtOpenWrapper>.Load(stream);
             break;
         case Tags.VtData:
             ret = Value<VtDataWrapper>.Load(stream);
             break;
         case Tags.Authenticate:
             ret = Value<AuthenticateWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 41
0
 public static RangeType Load(IValueStream stream)
 {
     RangeType ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.ByPosition:
             ret = Value<ByPosition>.Load(stream);
             break;
         case Tags.BySequenceNumber:
             ret = Value<BySequenceNumber>.Load(stream);
             break;
         case Tags.ByTime:
             ret = Value<ByTime>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
        public static UnconfirmedServiceRequest Load(IValueStream stream)
        {
            UnconfirmedServiceRequest ret = null;
            Tags tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.IAm:
                ret = Value <IAmWrapper> .Load(stream);

                break;

            case Tags.IHave:
                ret = Value <IHaveWrapper> .Load(stream);

                break;

            case Tags.UnconfirmedCOVNotification:
                ret = Value <UnconfirmedCOVNotificationWrapper> .Load(stream);

                break;

            case Tags.UnconfirmedEventNotification:
                ret = Value <UnconfirmedEventNotificationWrapper> .Load(stream);

                break;

            case Tags.UnconfirmedPrivateTransfer:
                ret = Value <UnconfirmedPrivateTransferWrapper> .Load(stream);

                break;

            case Tags.UnconfirmedTextMessage:
                ret = Value <UnconfirmedTextMessageWrapper> .Load(stream);

                break;

            case Tags.TimeSynchronization:
                ret = Value <TimeSynchronizationWrapper> .Load(stream);

                break;

            case Tags.WhoHas:
                ret = Value <WhoHasWrapper> .Load(stream);

                break;

            case Tags.WhoIs:
                ret = Value <WhoIsWrapper> .Load(stream);

                break;

            case Tags.UtcTimeSynchronization:
                ret = Value <UtcTimeSynchronizationWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }
Esempio n. 43
0
 public static LogDatumType Load(IValueStream stream)
 {
     LogDatumType ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.LogStatus:
             ret = Value<LogStatusWrapper>.Load(stream);
             break;
         case Tags.BooleanValue:
             ret = Value<BooleanValueWrapper>.Load(stream);
             break;
         case Tags.RealValue:
             ret = Value<RealValueWrapper>.Load(stream);
             break;
         case Tags.EnumValue:
             ret = Value<EnumValueWrapper>.Load(stream);
             break;
         case Tags.UnsignedValue:
             ret = Value<UnsignedValueWrapper>.Load(stream);
             break;
         case Tags.SignedValue:
             ret = Value<SignedValueWrapper>.Load(stream);
             break;
         case Tags.BitstringValue:
             ret = Value<BitstringValueWrapper>.Load(stream);
             break;
         case Tags.NullValue:
             ret = Value<NullValueWrapper>.Load(stream);
             break;
         case Tags.Failure:
             ret = Value<FailureWrapper>.Load(stream);
             break;
         case Tags.TimeChange:
             ret = Value<TimeChangeWrapper>.Load(stream);
             break;
         case Tags.AnyValue:
             ret = Value<AnyValueWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
 public static MessageClassType Load(IValueStream stream)
 {
     MessageClassType ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.Numeric:
             ret = Value<NumericWrapper>.Load(stream);
             break;
         case Tags.Character:
             ret = Value<CharacterWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }
Esempio n. 45
0
 public static ConfirmedServiceRequest Load(IValueStream stream)
 {
     ConfirmedServiceRequest ret = null;
     Tags tag = (Tags)stream.EnterChoice();
     switch(tag)
     {
         case Tags.AcknowledgeAlarm:
             ret = Value<AcknowledgeAlarmWrapper>.Load(stream);
             break;
         case Tags.ConfirmedCOVNotification:
             ret = Value<ConfirmedCOVNotificationWrapper>.Load(stream);
             break;
         case Tags.ConfirmedEventNotification:
             ret = Value<ConfirmedEventNotificationWrapper>.Load(stream);
             break;
         case Tags.GetEnrollmentSummary:
             ret = Value<GetEnrollmentSummaryWrapper>.Load(stream);
             break;
         case Tags.GetEventInformation:
             ret = Value<GetEventInformationWrapper>.Load(stream);
             break;
         case Tags.SubscribeCOV:
             ret = Value<SubscribeCOVWrapper>.Load(stream);
             break;
         case Tags.SubscribeCOVProperty:
             ret = Value<SubscribeCOVPropertyWrapper>.Load(stream);
             break;
         case Tags.LifeSafetyOperation:
             ret = Value<LifeSafetyOperationWrapper>.Load(stream);
             break;
         case Tags.AtomicReadFile:
             ret = Value<AtomicReadFileWrapper>.Load(stream);
             break;
         case Tags.AtomicWriteFile:
             ret = Value<AtomicWriteFileWrapper>.Load(stream);
             break;
         case Tags.AddListElement:
             ret = Value<AddListElementWrapper>.Load(stream);
             break;
         case Tags.RemoveListElement:
             ret = Value<RemoveListElementWrapper>.Load(stream);
             break;
         case Tags.CreateObject:
             ret = Value<CreateObjectWrapper>.Load(stream);
             break;
         case Tags.DeleteObject:
             ret = Value<DeleteObjectWrapper>.Load(stream);
             break;
         case Tags.ReadProperty:
             ret = Value<ReadPropertyWrapper>.Load(stream);
             break;
         case Tags.ReadPropertyConditional:
             ret = Value<ReadPropertyConditionalWrapper>.Load(stream);
             break;
         case Tags.ReadPropertyMultiple:
             ret = Value<ReadPropertyMultipleWrapper>.Load(stream);
             break;
         case Tags.ReadRange:
             ret = Value<ReadRangeWrapper>.Load(stream);
             break;
         case Tags.WriteProperty:
             ret = Value<WritePropertyWrapper>.Load(stream);
             break;
         case Tags.WritePropertyMultiple:
             ret = Value<WritePropertyMultipleWrapper>.Load(stream);
             break;
         case Tags.DeviceCommunicationControl:
             ret = Value<DeviceCommunicationControlWrapper>.Load(stream);
             break;
         case Tags.ConfirmedPrivateTransfer:
             ret = Value<ConfirmedPrivateTransferWrapper>.Load(stream);
             break;
         case Tags.ConfirmedTextMessage:
             ret = Value<ConfirmedTextMessageWrapper>.Load(stream);
             break;
         case Tags.ReinitializeDevice:
             ret = Value<ReinitializeDeviceWrapper>.Load(stream);
             break;
         case Tags.VtOpen:
             ret = Value<VtOpenWrapper>.Load(stream);
             break;
         case Tags.VtClose:
             ret = Value<VtCloseWrapper>.Load(stream);
             break;
         case Tags.VtData:
             ret = Value<VtDataWrapper>.Load(stream);
             break;
         case Tags.Authenticate:
             ret = Value<AuthenticateWrapper>.Load(stream);
             break;
         case Tags.RequestKey:
             ret = Value<RequestKeyWrapper>.Load(stream);
             break;
         default:
             throw new Exception();
     }
     stream.LeaveChoice();
     return ret;
 }