Click or drag to resize

TelegramFormat Class

Defines the format of a telegram.
Inheritance Hierarchy

Namespace: Demo3D.HLE.Comms.Telegram
Assembly: Demo3D.HLE (in Demo3D.HLE.dll) Version: 19.00.00
Syntax
C#
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public abstract class TelegramFormat : INotifyPropertyChanged, 
	IDisposable

The TelegramFormat type exposes the following members.

Constructors
 NameDescription
Protected methodTelegramFormat Constructs a new TelegramFormat.
Protected methodTelegramFormat(String) Constructs a new TelegramFormat.
Top
Properties
 NameDescription
Public propertyIsBuilt True if the format has been built into a data type.
Public propertyLength Format byte length. -1 for dynamic length.
Public propertyName Format name.
Top
Methods
 NameDescription
Public methodAddSegment Adds and appends a new TelegramFormatSegment.
Public methodBuild Builds the format into a usable data type.
Public methodCreateInstance Creates an instance of the format data type, i.e., a formatted telegram.
Public methodFindSegment Returns an identified TelegramFormatSegment, or null.
Public methodGetDataType Gets the built data type representing the format.
Public methodInsertSegment Inserts a new TelegramFormatSegment at the specified index.
Public methodProcessInboundTelegram Processes an inbound telegram.
Public methodProcessInboundTelegramToSegments Processes an inbound telegram into its segments.
Public methodProcessOutboundTelegram Processes an outbound telegram.
Public methodProcessSegmentsToOutboundTelegram Processes telegram segments into an outbound telegram.
Public methodRemoveSegment Removes a TelegramFormatSegment by name.
Public methodReplaceSegments Replace all current segments with the provided.
Protected methodSetPropertyT 
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Top
Events
 NameDescription
Public eventStatic memberPropertiesChanged Raised when any property changes.
Public eventPropertyChanged Raised when a property changes.
Public eventSegmentPropertyChanged Raised when the properties of a segment is changed.
Public eventSegmentsChanged Raised when Segments has changed.
Top
Remarks

This class is extended to implement custom processing logic by overriding:
ProcessInboundTelegram(BufferSegment)
ProcessInboundTelegramToSegments(BufferSegment)
ProcessOutboundTelegram(BufferSegment)
ProcessSegmentsToOutboundTelegram(IListBufferSegment)

Custom building logic can also be implemented by overriding Build.

See Also