C# Class BACnet.Tagging.TagWriter

Datei anzeigen Open project: LorenVS/bacstack Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
_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

Method Details

TagWriter() public method

Constructs a new TagWriter instance
public TagWriter ( Stream stream ) : System
stream Stream The stream to write tags to
return System

WriteBitString24() public method

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
return void

WriteBitString56() public method

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
return void

WriteBitString8() public method

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
return void

WriteBoolean() public method

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
return void

WriteCharString() public method

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
return void

WriteCloseTag() public method

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
return void

WriteDate() public method

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
return void

WriteEnumerated() public method

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
return void

WriteFloat32() public method

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
return void

WriteFloat64() public method

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
return void

WriteGeneric() public method

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
return void

WriteNull() public method

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
return void

WriteObjectId() public method

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
return void

WriteOctetString() public method

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
return void

WriteOpenTag() public method

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
return void

WriteSigned16() public method

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
return void

WriteSigned32() public method

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
return void

WriteSigned64() public method

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
return void

WriteSigned8() public method

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
return void

WriteTime() public method

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
return void

WriteUnsigned16() public method

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
return void

WriteUnsigned32() public method

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
return void

WriteUnsigned64() public method

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
return void

WriteUnsigned8() public method

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
return void