public static SetpointReference Load(IValueStream stream) { stream.EnterSequence(); var reference = Value<Option<ObjectPropertyReference>>.Load(stream); stream.LeaveSequence(); return new SetpointReference(reference); }
public static AuthenticateAck Load(IValueStream stream) { stream.EnterSequence(); var modifiedRandomNumber = Value<uint>.Load(stream); stream.LeaveSequence(); return new AuthenticateAck(modifiedRandomNumber); }
public static VTOpenAck Load(IValueStream stream) { stream.EnterSequence(); var remoteVTSessionIdentifier = Value<byte>.Load(stream); stream.LeaveSequence(); return new VTOpenAck(remoteVTSessionIdentifier); }
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 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)); }
public static ConfirmedEventNotificationRequest Load(IValueStream stream) { stream.EnterSequence(); var processIdentifier = Value <uint> .Load(stream); var initiatingDeviceIdentifier = Value <ObjectId> .Load(stream); var eventObjectIdentifier = Value <ObjectId> .Load(stream); var timeStamp = Value <TimeStamp> .Load(stream); var notificationClass = Value <uint> .Load(stream); var priority = Value <byte> .Load(stream); var eventType = Value <EventType> .Load(stream); var messageText = Value <Option <string> > .Load(stream); var notifyType = Value <NotifyType> .Load(stream); var ackRequired = Value <Option <bool> > .Load(stream); var fromState = Value <Option <EventState> > .Load(stream); var toState = Value <EventState> .Load(stream); var eventValues = Value <Option <NotificationParameters> > .Load(stream); stream.LeaveSequence(); return(new ConfirmedEventNotificationRequest(processIdentifier, initiatingDeviceIdentifier, eventObjectIdentifier, timeStamp, notificationClass, priority, eventType, messageText, notifyType, ackRequired, fromState, toState, eventValues)); }
public static DailySchedule Load(IValueStream stream) { stream.EnterSequence(); var daySchedule = Value<ReadOnlyArray<TimeValue>>.Load(stream); stream.LeaveSequence(); return new DailySchedule(daySchedule); }
public static WritePropertyMultipleRequest Load(IValueStream stream) { stream.EnterSequence(); var listOfwriteAccessSpecifications = Value<ReadOnlyArray<WriteAccessSpecification>>.Load(stream); stream.LeaveSequence(); return new WritePropertyMultipleRequest(listOfwriteAccessSpecifications); }
public static DeleteObjectRequest Load(IValueStream stream) { stream.EnterSequence(); var objectIdentifier = Value<ObjectId>.Load(stream); stream.LeaveSequence(); return new DeleteObjectRequest(objectIdentifier); }
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); }
public static TimeSynchronizationRequest Load(IValueStream stream) { stream.EnterSequence(); var time = Value<DateAndTime>.Load(stream); stream.LeaveSequence(); return new TimeSynchronizationRequest(time); }
public static bool TryGetValueStream <TValue>( this IProgrammingInterface api, ValueStreamIdentitfier <TValue> identifier, out IValueStream <TValue> invocator) { return(api.TryGetValueStream(identifier.Identifier, out invocator)); }
public static GetEventInformationRequest Load(IValueStream stream) { stream.EnterSequence(); var lastReceivedObjectIdentifier = Value<Option<ObjectId>>.Load(stream); stream.LeaveSequence(); return new GetEventInformationRequest(lastReceivedObjectIdentifier); }
public static VTCloseRequest Load(IValueStream stream) { stream.EnterSequence(); var listOfRemoteVTSessionIdentifiers = Value<ReadOnlyArray<byte>>.Load(stream); stream.LeaveSequence(); return new VTCloseRequest(listOfRemoteVTSessionIdentifiers); }
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); }
public static ReadPropertyMultipleAck Load(IValueStream stream) { stream.EnterSequence(); var listOfReadAccessResults = Value<ReadOnlyArray<ReadAccessResult>>.Load(stream); stream.LeaveSequence(); return new ReadPropertyMultipleAck(listOfReadAccessResults); }
public static ActionList Load(IValueStream stream) { stream.EnterSequence(); var action = Value<ReadOnlyArray<ActionCommand>>.Load(stream); stream.LeaveSequence(); return new ActionList(action); }
public static TValue ReadCurrentValueFromStream <TValue>(this IValueStream <TValue> stream) { var listener = new ConstantValueStreamListener <TValue>(); using var token = stream.AddListener(listener); return(listener.Value); }
public static WritePropertyMultipleRequest Load(IValueStream stream) { stream.EnterSequence(); var listOfwriteAccessSpecifications = Value <ReadOnlyArray <WriteAccessSpecification> > .Load(stream); stream.LeaveSequence(); return(new WritePropertyMultipleRequest(listOfwriteAccessSpecifications)); }
public static WhoIsRequest Load(IValueStream stream) { stream.EnterSequence(); var deviceInstanceRangeLowLimit = Value<Option<uint>>.Load(stream); var deviceInstanceRangeHighLimit = Value<Option<uint>>.Load(stream); stream.LeaveSequence(); return new WhoIsRequest(deviceInstanceRangeLowLimit, deviceInstanceRangeHighLimit); }
public static VTOpenRequest Load(IValueStream stream) { stream.EnterSequence(); var vtClass = Value<VTClass>.Load(stream); var localVTSessionIdentifier = Value<byte>.Load(stream); stream.LeaveSequence(); return new VTOpenRequest(vtClass, localVTSessionIdentifier); }
public static ReadAccessSpecification Load(IValueStream stream) { stream.EnterSequence(); var objectIdentifier = Value<ObjectId>.Load(stream); var listOfPropertyReferences = Value<ReadOnlyArray<PropertyReference>>.Load(stream); stream.LeaveSequence(); return new ReadAccessSpecification(objectIdentifier, listOfPropertyReferences); }
public static Prescale Load(IValueStream stream) { stream.EnterSequence(); var multiplier = Value<uint>.Load(stream); var moduloDivide = Value<uint>.Load(stream); stream.LeaveSequence(); return new Prescale(multiplier, moduloDivide); }
public static ReadAccessResult Load(IValueStream stream) { stream.EnterSequence(); var objectIdentifier = Value<ObjectId>.Load(stream); var listOfResults = Value<Option<ReadOnlyArray<ListOfResultsType>>>.Load(stream); stream.LeaveSequence(); return new ReadAccessResult(objectIdentifier, listOfResults); }
public static AtomicReadFileRequest Load(IValueStream stream) { stream.EnterSequence(); var fileIdentifier = Value<ObjectId>.Load(stream); var accessMethod = Value<AccessMethodType>.Load(stream); stream.LeaveSequence(); return new AtomicReadFileRequest(fileIdentifier, accessMethod); }
public static AuthenticateAck Load(IValueStream stream) { stream.EnterSequence(); var modifiedRandomNumber = Value <uint> .Load(stream); stream.LeaveSequence(); return(new AuthenticateAck(modifiedRandomNumber)); }
public static VTOpenAck Load(IValueStream stream) { stream.EnterSequence(); var remoteVTSessionIdentifier = Value <byte> .Load(stream); stream.LeaveSequence(); return(new VTOpenAck(remoteVTSessionIdentifier)); }
public static VTCloseRequest Load(IValueStream stream) { stream.EnterSequence(); var listOfRemoteVTSessionIdentifiers = Value <ReadOnlyArray <byte> > .Load(stream); stream.LeaveSequence(); return(new VTCloseRequest(listOfRemoteVTSessionIdentifiers)); }
public static RecipientProcess Load(IValueStream stream) { stream.EnterSequence(); var recipient = Value<Recipient>.Load(stream); var processIdentifier = Value<uint>.Load(stream); stream.LeaveSequence(); return new RecipientProcess(recipient, processIdentifier); }
public static DateAndTime Load(IValueStream stream) { stream.EnterSequence(); var date = Value<Date>.Load(stream); var time = Value<Time>.Load(stream); stream.LeaveSequence(); return new DateAndTime(date, time); }
public static VTDataAck Load(IValueStream stream) { stream.EnterSequence(); var allNewDataAccepted = Value<bool>.Load(stream); var acceptedOctetCount = Value<Option<uint>>.Load(stream); stream.LeaveSequence(); return new VTDataAck(allNewDataAccepted, acceptedOctetCount); }
public static GetEventInformationRequest Load(IValueStream stream) { stream.EnterSequence(); var lastReceivedObjectIdentifier = Value <Option <ObjectId> > .Load(stream); stream.LeaveSequence(); return(new GetEventInformationRequest(lastReceivedObjectIdentifier)); }
public static DailySchedule Load(IValueStream stream) { stream.EnterSequence(); var daySchedule = Value <ReadOnlyArray <TimeValue> > .Load(stream); stream.LeaveSequence(); return(new DailySchedule(daySchedule)); }
public static AddressBinding Load(IValueStream stream) { stream.EnterSequence(); var deviceObjectIdentifier = Value<ObjectId>.Load(stream); var deviceAddress = Value<NetworkAddress>.Load(stream); stream.LeaveSequence(); return new AddressBinding(deviceObjectIdentifier, deviceAddress); }
public static ActionList Load(IValueStream stream) { stream.EnterSequence(); var action = Value <ReadOnlyArray <ActionCommand> > .Load(stream); stream.LeaveSequence(); return(new ActionList(action)); }
public static SessionKey Load(IValueStream stream) { stream.EnterSequence(); var key = Value<byte[]>.Load(stream); var peerAddress = Value<NetworkAddress>.Load(stream); stream.LeaveSequence(); return new SessionKey(key, peerAddress); }
public static UTCTimeSynchronizationRequest Load(IValueStream stream) { stream.EnterSequence(); var time = Value <DateAndTime> .Load(stream); stream.LeaveSequence(); return(new UTCTimeSynchronizationRequest(time)); }
public static ReadPropertyMultipleAck Load(IValueStream stream) { stream.EnterSequence(); var listOfReadAccessResults = Value <ReadOnlyArray <ReadAccessResult> > .Load(stream); stream.LeaveSequence(); return(new ReadPropertyMultipleAck(listOfReadAccessResults)); }
public static CreateObjectRequest Load(IValueStream stream) { stream.EnterSequence(); var objectSpecifier = Value<ObjectSpecifierType>.Load(stream); var listOfInitialValues = Value<Option<ReadOnlyArray<PropertyValue>>>.Load(stream); stream.LeaveSequence(); return new CreateObjectRequest(objectSpecifier, listOfInitialValues); }
public static DeleteObjectRequest Load(IValueStream stream) { stream.EnterSequence(); var objectIdentifier = Value <ObjectId> .Load(stream); stream.LeaveSequence(); return(new DeleteObjectRequest(objectIdentifier)); }
public static GetEventInformationAck Load(IValueStream stream) { stream.EnterSequence(); var listOfEventSummaries = Value<ReadOnlyArray<ListOfEventSummariesType>>.Load(stream); var moreEvents = Value<bool>.Load(stream); stream.LeaveSequence(); return new GetEventInformationAck(listOfEventSummaries, moreEvents); }
public static VTCloseError Load(IValueStream stream) { stream.EnterSequence(); var errorType = Value<Error>.Load(stream); var listOfVTSessionIdentifiers = Value<Option<ReadOnlyArray<byte>>>.Load(stream); stream.LeaveSequence(); return new VTCloseError(errorType, listOfVTSessionIdentifiers); }
public static AtomicReadFileAck Load(IValueStream stream) { stream.EnterSequence(); var endOfFile = Value<bool>.Load(stream); var accessMethod = Value<AccessMethodType>.Load(stream); stream.LeaveSequence(); return new AtomicReadFileAck(endOfFile, accessMethod); }
public static ReadPropertyConditionalRequest Load(IValueStream stream) { stream.EnterSequence(); var objectSelectionCriteria = Value<ObjectSelectionCriteriaType>.Load(stream); var listOfPropertyReferences = Value<Option<ReadOnlyArray<PropertyReference>>>.Load(stream); stream.LeaveSequence(); return new ReadPropertyConditionalRequest(objectSelectionCriteria, listOfPropertyReferences); }
public static PropertyReference Load(IValueStream stream) { stream.EnterSequence(); var propertyIdentifier = Value<PropertyIdentifier>.Load(stream); var propertyArrayIndex = Value<Option<uint>>.Load(stream); stream.LeaveSequence(); return new PropertyReference(propertyIdentifier, propertyArrayIndex); }
public static NetworkAddress Load(IValueStream stream) { stream.EnterSequence(); var networkNumber = Value<ushort>.Load(stream); var macAddress = Value<byte[]>.Load(stream); stream.LeaveSequence(); return new NetworkAddress(networkNumber, macAddress); }
public static SetpointReference Load(IValueStream stream) { stream.EnterSequence(); var reference = Value <Option <ObjectPropertyReference> > .Load(stream); stream.LeaveSequence(); return(new SetpointReference(reference)); }
public static ReinitializeDeviceRequest Load(IValueStream stream) { stream.EnterSequence(); var reinitializedStateOfDevice = Value<ReinitializedStateOfDeviceType>.Load(stream); var password = Value<Option<string>>.Load(stream); stream.LeaveSequence(); return new ReinitializeDeviceRequest(reinitializedStateOfDevice, password); }
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); }
public static AddressBinding Load(IValueStream stream) { stream.EnterSequence(); var deviceObjectIdentifier = Value <ObjectId> .Load(stream); var deviceAddress = Value <NetworkAddress> .Load(stream); stream.LeaveSequence(); return(new AddressBinding(deviceObjectIdentifier, deviceAddress)); }
public static VTDataAck Load(IValueStream stream) { stream.EnterSequence(); var allNewDataAccepted = Value <bool> .Load(stream); var acceptedOctetCount = Value <Option <uint> > .Load(stream); stream.LeaveSequence(); return(new VTDataAck(allNewDataAccepted, acceptedOctetCount)); }
public static new ChangeOfState Load(IValueStream stream) { stream.EnterSequence(); var newState = Value <PropertyStates> .Load(stream); var statusFlags = Value <StatusFlags> .Load(stream); stream.LeaveSequence(); return(new ChangeOfState(newState, statusFlags)); }
public static WhoIsRequest Load(IValueStream stream) { stream.EnterSequence(); var deviceInstanceRangeLowLimit = Value <Option <uint> > .Load(stream); var deviceInstanceRangeHighLimit = Value <Option <uint> > .Load(stream); stream.LeaveSequence(); return(new WhoIsRequest(deviceInstanceRangeLowLimit, deviceInstanceRangeHighLimit)); }
public static PropertyReference Load(IValueStream stream) { stream.EnterSequence(); var propertyIdentifier = Value <PropertyIdentifier> .Load(stream); var propertyArrayIndex = Value <Option <uint> > .Load(stream); stream.LeaveSequence(); return(new PropertyReference(propertyIdentifier, propertyArrayIndex)); }
public static Error Load(IValueStream stream) { stream.EnterSequence(); var errorClass = Value <ErrorClassType> .Load(stream); var errorCode = Value <ErrorCodeType> .Load(stream); stream.LeaveSequence(); return(new Error(errorClass, errorCode)); }
public static new ChangeOfValue Load(IValueStream stream) { stream.EnterSequence(); var newValue = Value <NewValue> .Load(stream); var statusFlags = Value <StatusFlags> .Load(stream); stream.LeaveSequence(); return(new ChangeOfValue(newValue, statusFlags)); }
public static new CommandFailure Load(IValueStream stream) { stream.EnterSequence(); var timeDelay = Value <uint> .Load(stream); var feedbackPropertyReference = Value <DeviceObjectPropertyReference> .Load(stream); stream.LeaveSequence(); return(new CommandFailure(timeDelay, feedbackPropertyReference)); }
public static new BufferReady Load(IValueStream stream) { stream.EnterSequence(); var notificationThreshold = Value <uint> .Load(stream); var previousNotificationCount = Value <uint> .Load(stream); stream.LeaveSequence(); return(new BufferReady(notificationThreshold, previousNotificationCount)); }
public static VTCloseError Load(IValueStream stream) { stream.EnterSequence(); var errorType = Value <Error> .Load(stream); var listOfVTSessionIdentifiers = Value <Option <ReadOnlyArray <byte> > > .Load(stream); stream.LeaveSequence(); return(new VTCloseError(errorType, listOfVTSessionIdentifiers)); }
public static new ChangeOfBitstring Load(IValueStream stream) { stream.EnterSequence(); var referencedBitstring = Value <BitString56> .Load(stream); var statusFlags = Value <StatusFlags> .Load(stream); stream.LeaveSequence(); return(new ChangeOfBitstring(referencedBitstring, statusFlags)); }