C# Класс BACnet.Tagging.TagWriter

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
TagWriter ( Stream stream ) : System

Constructs a new TagWriter instance

WriteBitString24 ( BitString24 value, byte tag = 255 ) : void

Writes a bitstring value to the stream

WriteBitString56 ( BitString56 value, byte tag = 255 ) : void

Writes a bitstring value to the stream

WriteBitString8 ( BitString8 value, byte tag = 255 ) : void

Writes a bitstring value to the stream

WriteBoolean ( bool value, byte tag = 255 ) : void

Writes a boolean tag to the stream

WriteCharString ( string value, byte tag = 255 ) : void

Writes a char string tag to the stream

WriteCloseTag ( byte tag ) : void

Writes a close tag to the stream

WriteDate ( Date value, byte tag = 255 ) : void

Writes a date value to the stream

WriteEnumerated ( uint value, byte tag = 255 ) : void

Writes an enumerated value to the stream

WriteFloat32 ( float value, byte tag = 255 ) : void

Writes a float32 tag to the stream

WriteFloat64 ( double value, byte tag = 255 ) : void

Writes a float64 tag to the stream

WriteGeneric ( GenericValue value, byte tag = 255 ) : void

Writes a generic value to the stream

WriteNull ( System.Null value, byte tag = 255 ) : void

Writes a null tag to the stream

WriteObjectId ( ObjectId value, byte tag = 255 ) : void

Writes an object id value to the stream

WriteOctetString ( byte value, byte tag = 255 ) : void

Writes an octet string tag to the stream

WriteOpenTag ( byte tag ) : void

Writes an open tag to the stream

WriteSigned16 ( short value, byte tag = 255 ) : void

Writes a signed tag to the stream

WriteSigned32 ( int value, byte tag = 255 ) : void

Writes a signed tag to the stream

WriteSigned64 ( long value, byte tag = 255 ) : void

Writes a signed tag to the stream

WriteSigned8 ( sbyte value, byte tag = 255 ) : void

Writes a signed tag to the stream

WriteTime ( Time value, byte tag = 255 ) : void

Writes a time value to the stream

WriteUnsigned16 ( ushort value, byte tag = 255 ) : void

Writes an unsigned tag to the stream

WriteUnsigned32 ( uint value, byte tag = 255 ) : void

Writes an unsigned tag to the stream

WriteUnsigned64 ( ulong value, byte tag = 255 ) : void

Writes an unsigned tag to the stream

WriteUnsigned8 ( byte value, byte tag = 255 ) : void

Writes an unsigned tag to the stream

Приватные методы

Метод Описание
_writeHeader ( byte tagNumber, ApplicationTag defaultTag, byte lvt ) : void

Writes a tag header to the stream

_writeLengthHeader ( byte tagNumber, ApplicationTag defaultTag, int length ) : void

Writes a tag header with a length LVT

_writeTypeHeader ( byte tagNumber, TagType type ) : void

Writes a tag header with a type LVT

_writeValueHeader ( byte tagNumber, ApplicationTag defaultTag, bool value ) : void

Writes a tag header with a value LVT

Описание методов

TagWriter() публичный Метод

Constructs a new TagWriter instance
public TagWriter ( Stream stream ) : System
stream Stream The stream to write tags to
Результат System

WriteBitString24() публичный Метод

Writes a bitstring value to the stream
public WriteBitString24 ( BitString24 value, byte tag = 255 ) : void
value BACnet.Types.BitString24 The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteBitString56() публичный Метод

Writes a bitstring value to the stream
public WriteBitString56 ( BitString56 value, byte tag = 255 ) : void
value BACnet.Types.BitString56 The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteBitString8() публичный Метод

Writes a bitstring value to the stream
public WriteBitString8 ( BitString8 value, byte tag = 255 ) : void
value BACnet.Types.BitString8 The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteBoolean() публичный Метод

Writes a boolean tag to the stream
public WriteBoolean ( bool value, byte tag = 255 ) : void
value bool The boolean value
tag byte The tag number, or 255 for an application tag
Результат void

WriteCharString() публичный Метод

Writes a char string tag to the stream
public WriteCharString ( string value, byte tag = 255 ) : void
value string The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteCloseTag() публичный Метод

Writes a close tag to the stream
public WriteCloseTag ( byte tag ) : void
tag byte The context tag number of the tag, or 255 for no tag
Результат void

WriteDate() публичный Метод

Writes a date value to the stream
public WriteDate ( Date value, byte tag = 255 ) : void
value Date The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteEnumerated() публичный Метод

Writes an enumerated value to the stream
public WriteEnumerated ( uint value, byte tag = 255 ) : void
value uint The value to write
tag byte The tag number, or 255 fo an application tag
Результат void

WriteFloat32() публичный Метод

Writes a float32 tag to the stream
public WriteFloat32 ( float value, byte tag = 255 ) : void
value float The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteFloat64() публичный Метод

Writes a float64 tag to the stream
public WriteFloat64 ( double value, byte tag = 255 ) : void
value double The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteGeneric() публичный Метод

Writes a generic value to the stream
public WriteGeneric ( GenericValue value, byte tag = 255 ) : void
value GenericValue The value to write
tag byte The wrapper tag number, or 255 for no wrapper tag
Результат void

WriteNull() публичный Метод

Writes a null tag to the stream
public WriteNull ( System.Null value, byte tag = 255 ) : void
value System.Null The null value
tag byte The tag number, or 255 for an application tag
Результат void

WriteObjectId() публичный Метод

Writes an object id value to the stream
public WriteObjectId ( ObjectId value, byte tag = 255 ) : void
value ObjectId The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteOctetString() публичный Метод

Writes an octet string tag to the stream
public WriteOctetString ( byte value, byte tag = 255 ) : void
value byte The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteOpenTag() публичный Метод

Writes an open tag to the stream
public WriteOpenTag ( byte tag ) : void
tag byte The context tag number of the tag, or 255 for no tag
Результат void

WriteSigned16() публичный Метод

Writes a signed tag to the stream
public WriteSigned16 ( short value, byte tag = 255 ) : void
value short The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteSigned32() публичный Метод

Writes a signed tag to the stream
public WriteSigned32 ( int value, byte tag = 255 ) : void
value int The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteSigned64() публичный Метод

Writes a signed tag to the stream
public WriteSigned64 ( long value, byte tag = 255 ) : void
value long The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteSigned8() публичный Метод

Writes a signed tag to the stream
public WriteSigned8 ( sbyte value, byte tag = 255 ) : void
value sbyte The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteTime() публичный Метод

Writes a time value to the stream
public WriteTime ( Time value, byte tag = 255 ) : void
value BACnet.Types.Time The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteUnsigned16() публичный Метод

Writes an unsigned tag to the stream
public WriteUnsigned16 ( ushort value, byte tag = 255 ) : void
value ushort The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteUnsigned32() публичный Метод

Writes an unsigned tag to the stream
public WriteUnsigned32 ( uint value, byte tag = 255 ) : void
value uint The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteUnsigned64() публичный Метод

Writes an unsigned tag to the stream
public WriteUnsigned64 ( ulong value, byte tag = 255 ) : void
value ulong The value to write
tag byte The tag number, or 255 for an application tag
Результат void

WriteUnsigned8() публичный Метод

Writes an unsigned tag to the stream
public WriteUnsigned8 ( byte value, byte tag = 255 ) : void
value byte The value to write
tag byte The tag number, or 255 for an application tag
Результат void