C# 클래스 BACnet.Tagging.TagReader

파일 보기 프로젝트 열기: LorenVS/bacstack 1 사용 예제들

공개 메소드들

메소드 설명
AtCloseTag ( byte tag ) : bool

Checks whether the next tag is a close tag with a certain tag number

AtOpenTag ( byte tag ) : bool

Checks whether the next tag is an open tag with a certain tag number

AtTag ( byte tag, ApplicationTag defaultTag ) : bool

Checks whether the next tag to be read matches a certain tag

EOF ( ) : bool

Determines whether the reader is at the end of the stream

ReadBitString24 ( byte tag = 255 ) : BitString24

Reads a bitstring tag from the stream

ReadBitString56 ( byte tag = 255 ) : BitString56

Reads a bitstring tag from the stream

ReadBitString8 ( byte tag = 255 ) : BitString8

Reads a bitstring tag from the stream

ReadBoolean ( byte tag = 255 ) : bool

Reads a boolean tag from the stream

ReadCharString ( byte tag = 255 ) : string

Reads a char string tag from the stream

ReadCloseTag ( byte tag ) : void

Reads a close tag from the stream

ReadDate ( byte tag = 255 ) : Date

Reads a date tag from the stream

ReadEnumerated ( byte tag = 255 ) : uint

Reads an enumerated tag from the stream

ReadFloat32 ( byte tag = 255 ) : float

Reads a float32 tag from the stream

ReadFloat64 ( byte tag = 255 ) : double

Reads a float64 tag from the stream

ReadGeneric ( byte tag = 255 ) : GenericValue

Reads a generic value from the stream

ReadNull ( byte tag = 255 ) : System.Null

Reads a null tag from the stream

ReadObjectId ( byte tag = 255 ) : ObjectId

Reads an object id tag from the stream

ReadOctetString ( byte tag = 255 ) : byte[]

Reads an octet string tag from the stream

ReadOpenTag ( byte tag ) : void

Reads an open tag from the stream

ReadSigned16 ( byte tag = 255 ) : short

Reads a signed tag from the stream

ReadSigned32 ( byte tag = 255 ) : int

Reads a signed tag from the stream

ReadSigned64 ( byte tag = 255 ) : long

Reads a signed tag from the stream

ReadSigned8 ( byte tag = 255 ) : sbyte

Reads a signed tag from the stream

ReadTime ( byte tag = 255 ) : Time

Reads a time tag from the stream

ReadUnsigned16 ( byte tag = 255 ) : ushort

Reads an unsigned tag from the stream

ReadUnsigned32 ( byte tag = 255 ) : uint

Reads an unsigned tag from the stream

ReadUnsigned64 ( byte tag = 255 ) : ulong

Reads an unsigned tag from the stream

ReadUnsigned8 ( byte tag = 255 ) : byte

Reads an unsigned tag from the stream

TagReader ( Stream stream ) : System

Constructs a new TagReader instance

비공개 메소드들

메소드 설명
_ensureLVT ( LVT lvt ) : void

Ensures that the current tag lvt is an expected value

_ensureLength ( int length ) : void

Ensures that the current tag length is an expected value

_ensureLength ( int min, int max ) : void

Ensures that the current tag length falls within an expected range

_ensureTag ( byte tag ) : void

Ensures that the current tag meets an expected tag value

_ensureTag ( byte tag, ApplicationTag defaultTag ) : void

Ensures that the current tag meets an expected tag value

_ensureType ( TagType type ) : void

Ensures that the type of the read tag is an expected value

_nextHeader ( ) : void

Reads the next header from the input stream

_peekHeader ( ) : bool

Peeks at the next tag header, without consuming it

_readHeader ( ) : bool

Reads the next header from the input stream if it hasn't already been read

메소드 상세

AtCloseTag() 공개 메소드

Checks whether the next tag is a close tag with a certain tag number
public AtCloseTag ( byte tag ) : bool
tag byte The tag number to check for, or 255 for no tag
리턴 bool

AtOpenTag() 공개 메소드

Checks whether the next tag is an open tag with a certain tag number
public AtOpenTag ( byte tag ) : bool
tag byte The tag number to check for, or 255 for no tag
리턴 bool

AtTag() 공개 메소드

Checks whether the next tag to be read matches a certain tag
public AtTag ( byte tag, ApplicationTag defaultTag ) : bool
tag byte The tag number to check for, or 255 for an application tag
defaultTag ApplicationTag The application tag to check for
리턴 bool

EOF() 공개 메소드

Determines whether the reader is at the end of the stream
public EOF ( ) : bool
리턴 bool

ReadBitString24() 공개 메소드

Reads a bitstring tag from the stream
public ReadBitString24 ( byte tag = 255 ) : BitString24
tag byte The tag number of the bitstring tag, or 255 for an application tag
리턴 BACnet.Types.BitString24

ReadBitString56() 공개 메소드

Reads a bitstring tag from the stream
public ReadBitString56 ( byte tag = 255 ) : BitString56
tag byte The tag number of the bitstring tag, or 255 for an application tag
리턴 BACnet.Types.BitString56

ReadBitString8() 공개 메소드

Reads a bitstring tag from the stream
public ReadBitString8 ( byte tag = 255 ) : BitString8
tag byte The tag number of the bitstring tag, or 255 for an application tag
리턴 BACnet.Types.BitString8

ReadBoolean() 공개 메소드

Reads a boolean tag from the stream
public ReadBoolean ( byte tag = 255 ) : bool
tag byte The tag number of the boolean tag, or 255 for an application tag
리턴 bool

ReadCharString() 공개 메소드

Reads a char string tag from the stream
public ReadCharString ( byte tag = 255 ) : string
tag byte The tag number of the char string tag, or 255 for an application tag
리턴 string

ReadCloseTag() 공개 메소드

Reads a close tag from the stream
public ReadCloseTag ( byte tag ) : void
tag byte The tag number of the close tag, or 255 for no close tag
리턴 void

ReadDate() 공개 메소드

Reads a date tag from the stream
public ReadDate ( byte tag = 255 ) : Date
tag byte The tag number of the date tag, or 255 for an application tag
리턴 Date

ReadEnumerated() 공개 메소드

Reads an enumerated tag from the stream
public ReadEnumerated ( byte tag = 255 ) : uint
tag byte The tag number of the enumerated tag, or 255 for an application tag
리턴 uint

ReadFloat32() 공개 메소드

Reads a float32 tag from the stream
public ReadFloat32 ( byte tag = 255 ) : float
tag byte The tag number of the float32 tag, or 255 for an application tag
리턴 float

ReadFloat64() 공개 메소드

Reads a float64 tag from the stream
public ReadFloat64 ( byte tag = 255 ) : double
tag byte The tag number of the float64 tag, or 255 for an application tag
리턴 double

ReadGeneric() 공개 메소드

Reads a generic value from the stream
public ReadGeneric ( byte tag = 255 ) : GenericValue
tag byte The tag number of the wrapping tags, or 255 for no wrapping tag
리턴 GenericValue

ReadNull() 공개 메소드

Reads a null tag from the stream
public ReadNull ( byte tag = 255 ) : System.Null
tag byte The tag number of the null tag, or 255 for an application tag
리턴 System.Null

ReadObjectId() 공개 메소드

Reads an object id tag from the stream
public ReadObjectId ( byte tag = 255 ) : ObjectId
tag byte The tag number of the object id tag, or 255 for an application tag
리턴 ObjectId

ReadOctetString() 공개 메소드

Reads an octet string tag from the stream
public ReadOctetString ( byte tag = 255 ) : byte[]
tag byte The tag number of the octet string tag, or 255 for an application tag
리턴 byte[]

ReadOpenTag() 공개 메소드

Reads an open tag from the stream
public ReadOpenTag ( byte tag ) : void
tag byte The tag number of the open tag, or 255 for no open tag
리턴 void

ReadSigned16() 공개 메소드

Reads a signed tag from the stream
public ReadSigned16 ( byte tag = 255 ) : short
tag byte The tag number of the signed tag, or 255 for an application tag
리턴 short

ReadSigned32() 공개 메소드

Reads a signed tag from the stream
public ReadSigned32 ( byte tag = 255 ) : int
tag byte The tag number of the signed tag, or 255 for an application tag
리턴 int

ReadSigned64() 공개 메소드

Reads a signed tag from the stream
public ReadSigned64 ( byte tag = 255 ) : long
tag byte The tag number of the signed tag, or 255 for an application tag
리턴 long

ReadSigned8() 공개 메소드

Reads a signed tag from the stream
public ReadSigned8 ( byte tag = 255 ) : sbyte
tag byte The tag number of the signed tag, or 255 for an application tag
리턴 sbyte

ReadTime() 공개 메소드

Reads a time tag from the stream
public ReadTime ( byte tag = 255 ) : Time
tag byte The tag number of the time tag, or 255 for an application tag
리턴 BACnet.Types.Time

ReadUnsigned16() 공개 메소드

Reads an unsigned tag from the stream
public ReadUnsigned16 ( byte tag = 255 ) : ushort
tag byte The tag number of the unsigned tag, or 255 for an application tag
리턴 ushort

ReadUnsigned32() 공개 메소드

Reads an unsigned tag from the stream
public ReadUnsigned32 ( byte tag = 255 ) : uint
tag byte The tag number of the unsigned tag, or 255 for an application tag
리턴 uint

ReadUnsigned64() 공개 메소드

Reads an unsigned tag from the stream
public ReadUnsigned64 ( byte tag = 255 ) : ulong
tag byte The tag number of the unsigned tag, or 255 for an application tag
리턴 ulong

ReadUnsigned8() 공개 메소드

Reads an unsigned tag from the stream
public ReadUnsigned8 ( byte tag = 255 ) : byte
tag byte The tag number of the unsigned tag, or 255 for an application tag
리턴 byte

TagReader() 공개 메소드

Constructs a new TagReader instance
public TagReader ( Stream stream ) : System
stream Stream The stream to read from
리턴 System