Documentation
¶
Index ¶
- Constants
- type ApplicationTag
- func (t ApplicationTag) AppToContext(context uint) (*ContextTag, error)
- func (t ApplicationTag) AppToObject() (any, error)
- func (t ApplicationTag) ContextToApp(dataType uint) (Tag, error)
- func (t ApplicationTag) Decode(pdu PDUData) error
- func (t ApplicationTag) Encode(pdu PDUData)
- func (t ApplicationTag) Equals(other any) bool
- func (t ApplicationTag) Format(s fmt.State, v rune)
- func (t ApplicationTag) GetTagClass() readWriteModel.TagClass
- func (t ApplicationTag) GetTagData() []byte
- func (t ApplicationTag) GetTagLvt() int
- func (t ApplicationTag) GetTagNumber() uint
- func (t ApplicationTag) PrintDebugContents(indent int, file io.Writer, _ids []uintptr)
- type Atomic
- type AtomicContract
- type AtomicRequirements
- type BitString
- func (b *BitString) Compare(other any) int
- func (b *BitString) Decode(arg Arg) error
- func (b *BitString) Encode(arg Arg) error
- func (b *BitString) Equals(other any) bool
- func (b *BitString) GetAppTag() model.BACnetDataType
- func (b *BitString) GetValue() []bool
- func (b *BitString) LowerThan(other any) bool
- func (b *BitString) String() string
- type BitStringExtension
- type Boolean
- type CharacterString
- type ClosingTag
- func (t ClosingTag) AppToContext(context uint) (*ContextTag, error)
- func (t ClosingTag) AppToObject() (any, error)
- func (t ClosingTag) ContextToApp(dataType uint) (Tag, error)
- func (t ClosingTag) Decode(pdu PDUData) error
- func (t ClosingTag) Encode(pdu PDUData)
- func (t ClosingTag) Equals(other any) bool
- func (t ClosingTag) Format(s fmt.State, v rune)
- func (t ClosingTag) GetTagClass() readWriteModel.TagClass
- func (t ClosingTag) GetTagData() []byte
- func (t ClosingTag) GetTagLvt() int
- func (t ClosingTag) GetTagNumber() uint
- func (t ClosingTag) PrintDebugContents(indent int, file io.Writer, _ids []uintptr)
- type CommonMath
- type ComparableAndOrdered
- type ContextTag
- func (t ContextTag) AppToContext(context uint) (*ContextTag, error)
- func (t ContextTag) AppToObject() (any, error)
- func (t ContextTag) ContextToApp(dataType uint) (Tag, error)
- func (t ContextTag) Decode(pdu PDUData) error
- func (t ContextTag) Encode(pdu PDUData)
- func (t ContextTag) Equals(other any) bool
- func (t ContextTag) Format(s fmt.State, v rune)
- func (t ContextTag) GetTagClass() readWriteModel.TagClass
- func (t ContextTag) GetTagData() []byte
- func (t ContextTag) GetTagLvt() int
- func (t ContextTag) GetTagNumber() uint
- func (t ContextTag) PrintDebugContents(indent int, file io.Writer, _ids []uintptr)
- type Date
- func (d *Date) Coerce(arg Date) DateTuple
- func (d *Date) Compare(other any) int
- func (d *Date) Decode(arg Arg) error
- func (d *Date) Encode(arg Arg) error
- func (d *Date) Equals(other any) bool
- func (d *Date) GetAppTag() model.BACnetDataType
- func (d *Date) GetValue() DateTuple
- func (d *Date) IsValid(arg any) bool
- func (d *Date) LowerThan(other any) bool
- func (d *Date) String() string
- type DateTuple
- type Double
- type Enumerated
- func (e *Enumerated) Compare(other any) int
- func (e *Enumerated) Decode(arg Arg) error
- func (e *Enumerated) Encode(arg Arg) error
- func (e *Enumerated) GetAppTag() model.BACnetDataType
- func (e *Enumerated) GetEnumerations() map[string]uint64
- func (e *Enumerated) GetItem(item any) (result any, ok bool)
- func (e *Enumerated) GetLong() uint64
- func (e *Enumerated) GetValueString() string
- func (e *Enumerated) GetXlateTable() map[any]any
- func (e *Enumerated) IsValid(arg any) bool
- func (e *Enumerated) Keylist() []string
- func (e *Enumerated) SetEnumerated(_ *Enumerated)
- func (e *Enumerated) String() string
- type EnumeratedContract
- type Integer
- type IsAtomic
- type Null
- type ObjectIdentifier
- func (o *ObjectIdentifier) Coerce(arg ObjectIdentifier) ObjectIdentifierTuple
- func (o *ObjectIdentifier) Compare(other any) int
- func (o *ObjectIdentifier) Decode(arg Arg) error
- func (o *ObjectIdentifier) Encode(arg Arg) error
- func (o *ObjectIdentifier) Equals(other any) bool
- func (o *ObjectIdentifier) GetAppTag() model.BACnetDataType
- func (o *ObjectIdentifier) GetValue() ObjectIdentifierTuple
- func (o *ObjectIdentifier) IsValid(arg any) bool
- func (o *ObjectIdentifier) LowerThan(other any) bool
- func (o *ObjectIdentifier) String() string
- type ObjectIdentifierTuple
- type ObjectType
- type ObjectTypeContract
- type OctetString
- func (o *OctetString) Compare(other any) int
- func (o *OctetString) Decode(arg Arg) error
- func (o *OctetString) Encode(arg Arg) error
- func (o *OctetString) Equals(other any) bool
- func (o *OctetString) GetAppTag() model.BACnetDataType
- func (o *OctetString) GetValue() []byte
- func (o *OctetString) IsValid(arg any) bool
- func (o *OctetString) LowerThan(other any) bool
- func (o *OctetString) String() string
- type OpeningTag
- func (t OpeningTag) AppToContext(context uint) (*ContextTag, error)
- func (t OpeningTag) AppToObject() (any, error)
- func (t OpeningTag) ContextToApp(dataType uint) (Tag, error)
- func (t OpeningTag) Decode(pdu PDUData) error
- func (t OpeningTag) Encode(pdu PDUData)
- func (t OpeningTag) Equals(other any) bool
- func (t OpeningTag) Format(s fmt.State, v rune)
- func (t OpeningTag) GetTagClass() readWriteModel.TagClass
- func (t OpeningTag) GetTagData() []byte
- func (t OpeningTag) GetTagLvt() int
- func (t OpeningTag) GetTagNumber() uint
- func (t OpeningTag) PrintDebugContents(indent int, file io.Writer, _ids []uintptr)
- type Real
- type Tag
- type TagList
- func (b *TagList) Append(tag Tag)
- func (b *TagList) Decode(data PDUData) error
- func (b *TagList) Encode(data PDUData)
- func (b *TagList) Extend(tags ...Tag)
- func (b *TagList) GetContext(context uint) (any, error)
- func (b *TagList) GetTagList() []Tag
- func (b *TagList) Peek() Tag
- func (b *TagList) Pop() Tag
- func (b *TagList) PrintDebugContents(indent int, file io.Writer, _ids []uintptr)
- func (b *TagList) Push(tag Tag)
- type Time
- func (t *Time) Coerce(arg Time) TimeTuple
- func (t *Time) Compare(other any) int
- func (t *Time) Decode(arg Arg) error
- func (t *Time) Encode(arg Arg) error
- func (t *Time) Equals(other any) bool
- func (t *Time) GetAppTag() model.BACnetDataType
- func (t *Time) GetValue() TimeTuple
- func (t *Time) IsValid(arg any) bool
- func (t *Time) LowerThan(other any) bool
- func (t *Time) String() string
- type TimeTuple
- type Unsigned
- type Unsigned16
- type Unsigned8
Constants ¶
View Source
const ( // Deprecated: use model.TagClass_APPLICATION_TAGS TagApplicationTagClass = readWriteModel.TagClass_APPLICATION_TAGS // Deprecated: use model.TagClass_CONTEXT_SPECIFIC_TAGS TagContextTagClass = readWriteModel.TagClass_CONTEXT_SPECIFIC_TAGS TagOpeningTagClass = 2 TagClosingTagClass = 3 // Deprecated: use model.BACnetDataType_NULL TagNullAppTag = readWriteModel.BACnetDataType_NULL // Deprecated: use model.BACnetDataType_BOOLEAN TagBooleanAppTag = readWriteModel.BACnetDataType_BOOLEAN // Deprecated: use model.BACnetDataType_UNSIGNED_INTEGER TagUnsignedAppTag = readWriteModel.BACnetDataType_UNSIGNED_INTEGER // Deprecated: use model.BACnetDataType_SIGNED_INTEGER TagIntegerAppTag = readWriteModel.BACnetDataType_SIGNED_INTEGER // Deprecated: use model.BACnetDataType_REAL TagRealAppTag = readWriteModel.BACnetDataType_REAL // Deprecated: use model.BACnetDataType_DOUBLE TagDoubleAppTag = readWriteModel.BACnetDataType_DOUBLE // Deprecated: use model.BACnetDataType_OCTET_STRING TagOctetStringAppTag = readWriteModel.BACnetDataType_OCTET_STRING // Deprecated: use model.BACnetDataType_CHARACTER_STRING TagCharacterStringAppTag = readWriteModel.BACnetDataType_CHARACTER_STRING // Deprecated: use model.BACnetDataType_BIT_STRING TagBitStringAppTag = readWriteModel.BACnetDataType_BIT_STRING // Deprecated: use model.BACnetDataType_ENUMERATED TagEnumeratedAppTag = readWriteModel.BACnetDataType_ENUMERATED // Deprecated: use model.BACnetDataType_DATE TagDateAppTag = readWriteModel.BACnetDataType_DATE // Deprecated: use model.BACnetDataType_TIME TagTimeAppTag = readWriteModel.BACnetDataType_TIME // Deprecated: use model.BACnetDataType_BACNET_OBJECT_IDENTIFIER TagObjectIdentifierAppTag = readWriteModel.BACnetDataType_BACNET_OBJECT_IDENTIFIER TagReservedAppTag13 = 13 TagReservedAppTag14 = 14 TagReservedAppTag15 = 15 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationTag ¶
type ApplicationTag struct {
// contains filtered or unexported fields
}
func NewApplicationTag ¶
func NewApplicationTag(args Args) (*ApplicationTag, error)
func (ApplicationTag) AppToContext ¶
func (t ApplicationTag) AppToContext(context uint) (*ContextTag, error)
func (ApplicationTag) AppToObject ¶
func (ApplicationTag) ContextToApp ¶
func (ApplicationTag) GetTagClass ¶
func (t ApplicationTag) GetTagClass() readWriteModel.TagClass
func (ApplicationTag) GetTagData ¶
func (t ApplicationTag) GetTagData() []byte
func (ApplicationTag) GetTagNumber ¶
func (t ApplicationTag) GetTagNumber() uint
type Atomic ¶
type Atomic[T ComparableAndOrdered] struct { AtomicContract[T] // contains filtered or unexported fields }
Atomic is an abstract struct
func NewAtomic ¶
func NewAtomic[T ComparableAndOrdered](subStruct interface { AtomicContract[T] AtomicRequirements }) *Atomic[T]
func (*Atomic[T]) GetAppTag ¶
func (a *Atomic[T]) GetAppTag() readWriteModel.BACnetDataType
type AtomicContract ¶
type AtomicContract[T ComparableAndOrdered] interface { Compare(other any) int LowerThan(other any) bool Equals(other any) bool GetValue() T }
AtomicContract provides a set of functions which can be overwritten by a sub struct
type AtomicRequirements ¶
AtomicRequirements provides a set of functions which must be overwritten by a sub struct
type BitString ¶
type BitString struct {
// contains filtered or unexported fields
}
func NewBitString ¶
func NewBitStringWithExtension ¶
func NewBitStringWithExtension(bitStringExtension BitStringExtension, args Args) (*BitString, error)
func (*BitString) GetAppTag ¶
func (b *BitString) GetAppTag() model.BACnetDataType
type BitStringExtension ¶
BitStringExtension can be used to inherit from BitString
type Boolean ¶
type Boolean struct { *Atomic[int] //Note we need int as bool can't be used // contains filtered or unexported fields }
func NewBoolean ¶
func (*Boolean) GetAppTag ¶
func (b *Boolean) GetAppTag() model.BACnetDataType
func (*Boolean) GetBoolValue ¶
type CharacterString ¶
type CharacterString struct { *Atomic[string] *CommonMath // contains filtered or unexported fields }
func NewCharacterString ¶
func NewCharacterString(arg Arg) (*CharacterString, error)
func (*CharacterString) Decode ¶
func (c *CharacterString) Decode(arg Arg) error
func (*CharacterString) Encode ¶
func (c *CharacterString) Encode(arg Arg) error
func (*CharacterString) GetAppTag ¶
func (c *CharacterString) GetAppTag() model.BACnetDataType
func (*CharacterString) IsValid ¶
func (c *CharacterString) IsValid(arg any) bool
func (*CharacterString) String ¶
func (c *CharacterString) String() string
type ClosingTag ¶
type ClosingTag struct {
// contains filtered or unexported fields
}
func NewClosingTag ¶
func NewClosingTag(context Arg) (*ClosingTag, error)
func (ClosingTag) AppToContext ¶
func (t ClosingTag) AppToContext(context uint) (*ContextTag, error)
func (ClosingTag) AppToObject ¶
func (ClosingTag) ContextToApp ¶
func (ClosingTag) GetTagClass ¶
func (t ClosingTag) GetTagClass() readWriteModel.TagClass
func (ClosingTag) GetTagData ¶
func (t ClosingTag) GetTagData() []byte
func (ClosingTag) GetTagNumber ¶
func (t ClosingTag) GetTagNumber() uint
type CommonMath ¶
type CommonMath struct { }
type ComparableAndOrdered ¶
type ComparableAndOrdered interface { comparable cmp.Ordered }
type ContextTag ¶
type ContextTag struct {
// contains filtered or unexported fields
}
func NewContextTag ¶
func NewContextTag(args Args) (*ContextTag, error)
func (ContextTag) AppToContext ¶
func (t ContextTag) AppToContext(context uint) (*ContextTag, error)
func (ContextTag) AppToObject ¶
func (ContextTag) ContextToApp ¶
func (ContextTag) GetTagClass ¶
func (t ContextTag) GetTagClass() readWriteModel.TagClass
func (ContextTag) GetTagData ¶
func (t ContextTag) GetTagData() []byte
func (ContextTag) GetTagNumber ¶
func (t ContextTag) GetTagNumber() uint
type Date ¶
type Date struct {
// contains filtered or unexported fields
}
func (*Date) GetAppTag ¶
func (d *Date) GetAppTag() model.BACnetDataType
type Double ¶
type Double struct { *Atomic[float64] *CommonMath // contains filtered or unexported fields }
func (*Double) GetAppTag ¶
func (d *Double) GetAppTag() model.BACnetDataType
type Enumerated ¶
type Enumerated struct { *Atomic[uint64] EnumeratedContract // contains filtered or unexported fields }
func NewEnumerated ¶
func NewEnumerated(args Args) (*Enumerated, error)
func (*Enumerated) Compare ¶
func (e *Enumerated) Compare(other any) int
func (*Enumerated) Decode ¶
func (e *Enumerated) Decode(arg Arg) error
func (*Enumerated) Encode ¶
func (e *Enumerated) Encode(arg Arg) error
func (*Enumerated) GetAppTag ¶
func (e *Enumerated) GetAppTag() model.BACnetDataType
func (*Enumerated) GetEnumerations ¶
func (e *Enumerated) GetEnumerations() map[string]uint64
func (*Enumerated) GetLong ¶
func (e *Enumerated) GetLong() uint64
func (*Enumerated) GetValueString ¶
func (e *Enumerated) GetValueString() string
func (*Enumerated) GetXlateTable ¶
func (e *Enumerated) GetXlateTable() map[any]any
func (*Enumerated) IsValid ¶
func (e *Enumerated) IsValid(arg any) bool
func (*Enumerated) Keylist ¶
func (e *Enumerated) Keylist() []string
func (*Enumerated) SetEnumerated ¶
func (e *Enumerated) SetEnumerated(_ *Enumerated)
func (*Enumerated) String ¶
func (e *Enumerated) String() string
type EnumeratedContract ¶
type EnumeratedContract interface { GetEnumerations() map[string]uint64 GetXlateTable() map[any]any // SetEnumerated is required because we do more stuff in the constructor and can't wait for the substruct to finish that SetEnumerated(enumerated *Enumerated) }
EnumeratedContract provides a set of functions which can be overwritten by a sub struct
type Integer ¶
type Integer struct { *Atomic[int32] *CommonMath // contains filtered or unexported fields }
func NewInteger ¶
func (*Integer) GetAppTag ¶
func (i *Integer) GetAppTag() model.BACnetDataType
type ObjectIdentifier ¶
type ObjectIdentifier struct {
// contains filtered or unexported fields
}
func NewObjectIdentifier ¶
func NewObjectIdentifier(args Args) (*ObjectIdentifier, error)
func (*ObjectIdentifier) Coerce ¶
func (o *ObjectIdentifier) Coerce(arg ObjectIdentifier) ObjectIdentifierTuple
func (*ObjectIdentifier) Compare ¶
func (o *ObjectIdentifier) Compare(other any) int
func (*ObjectIdentifier) Decode ¶
func (o *ObjectIdentifier) Decode(arg Arg) error
func (*ObjectIdentifier) Encode ¶
func (o *ObjectIdentifier) Encode(arg Arg) error
func (*ObjectIdentifier) Equals ¶
func (o *ObjectIdentifier) Equals(other any) bool
func (*ObjectIdentifier) GetAppTag ¶
func (o *ObjectIdentifier) GetAppTag() model.BACnetDataType
func (*ObjectIdentifier) GetValue ¶
func (o *ObjectIdentifier) GetValue() ObjectIdentifierTuple
func (*ObjectIdentifier) IsValid ¶
func (o *ObjectIdentifier) IsValid(arg any) bool
func (*ObjectIdentifier) LowerThan ¶
func (o *ObjectIdentifier) LowerThan(other any) bool
func (*ObjectIdentifier) String ¶
func (o *ObjectIdentifier) String() string
type ObjectIdentifierTuple ¶
type ObjectType ¶
type ObjectType struct { *Enumerated // contains filtered or unexported fields }
func NewObjectType ¶
func NewObjectType(args Args) (*ObjectType, error)
func (*ObjectType) GetEnumerations ¶
func (o *ObjectType) GetEnumerations() map[string]uint64
func (*ObjectType) SetEnumerated ¶
func (o *ObjectType) SetEnumerated(enumerated *Enumerated)
func (*ObjectType) SetObjectType ¶
func (o *ObjectType) SetObjectType(_ *ObjectType)
func (*ObjectType) String ¶
func (o *ObjectType) String() string
type ObjectTypeContract ¶
type ObjectTypeContract interface { EnumeratedContract // SetObjectType is required because we do more stuff in the constructor and can't wait for the substruct to finish that SetObjectType(objectType *ObjectType) }
ObjectTypeContract provides a set of functions which can be overwritten by a sub struct
type OctetString ¶
type OctetString struct {
// contains filtered or unexported fields
}
func NewOctetString ¶
func NewOctetString(arg Arg) (*OctetString, error)
func (*OctetString) Compare ¶
func (o *OctetString) Compare(other any) int
func (*OctetString) Decode ¶
func (o *OctetString) Decode(arg Arg) error
func (*OctetString) Encode ¶
func (o *OctetString) Encode(arg Arg) error
func (*OctetString) Equals ¶
func (o *OctetString) Equals(other any) bool
func (*OctetString) GetAppTag ¶
func (o *OctetString) GetAppTag() model.BACnetDataType
func (*OctetString) GetValue ¶
func (o *OctetString) GetValue() []byte
func (*OctetString) IsValid ¶
func (o *OctetString) IsValid(arg any) bool
func (*OctetString) LowerThan ¶
func (o *OctetString) LowerThan(other any) bool
func (*OctetString) String ¶
func (o *OctetString) String() string
type OpeningTag ¶
type OpeningTag struct {
// contains filtered or unexported fields
}
func NewOpeningTag ¶
func NewOpeningTag(context Arg) (*OpeningTag, error)
func (OpeningTag) AppToContext ¶
func (t OpeningTag) AppToContext(context uint) (*ContextTag, error)
func (OpeningTag) AppToObject ¶
func (OpeningTag) ContextToApp ¶
func (OpeningTag) GetTagClass ¶
func (t OpeningTag) GetTagClass() readWriteModel.TagClass
func (OpeningTag) GetTagData ¶
func (t OpeningTag) GetTagData() []byte
func (OpeningTag) GetTagNumber ¶
func (t OpeningTag) GetTagNumber() uint
type Real ¶
type Real struct { *Atomic[float32] *CommonMath // contains filtered or unexported fields }
func (*Real) GetAppTag ¶
func (r *Real) GetAppTag() model.BACnetDataType
type Tag ¶
type Tag interface { DebugContentPrinter GetTagClass() readWriteModel.TagClass GetTagNumber() uint GetTagLvt() int GetTagData() []byte Encode(pdu PDUData) Decode(pdu PDUData) error AppToObject() (any, error) AppToContext(context uint) (*ContextTag, error) ContextToApp(dataType uint) (Tag, error) // TODO: can't be ApplicationTag because boolean gets encoded as Tag??? // contains filtered or unexported methods }
type TagList ¶
type TagList struct { *DefaultRFormatter // contains filtered or unexported fields }
func NewTagList ¶
func NewTagList(arg Arg) *TagList
func (*TagList) GetContext ¶
GetContext Return a tag or a list of tags context encoded.
func (*TagList) GetTagList ¶
func (*TagList) PrintDebugContents ¶
type Time ¶
type Time struct {
// contains filtered or unexported fields
}
func (*Time) GetAppTag ¶
func (t *Time) GetAppTag() model.BACnetDataType
type Unsigned ¶
type Unsigned struct { *Atomic[uint32] *CommonMath // contains filtered or unexported fields }
func NewUnsigned ¶
func (*Unsigned) GetAppTag ¶
func (u *Unsigned) GetAppTag() readWriteModel.BACnetDataType
type Unsigned16 ¶
type Unsigned16 struct { *Atomic[uint16] *CommonMath // contains filtered or unexported fields }
func NewUnsigned16 ¶
func NewUnsigned16(arg Arg) (*Unsigned16, error)
func (*Unsigned16) Decode ¶
func (u *Unsigned16) Decode(arg Arg) error
func (*Unsigned16) Encode ¶
func (u *Unsigned16) Encode(arg Arg) error
func (*Unsigned16) GetAppTag ¶
func (u *Unsigned16) GetAppTag() model.BACnetDataType
func (*Unsigned16) IsValid ¶
func (u *Unsigned16) IsValid(arg any) bool
func (*Unsigned16) String ¶
func (u *Unsigned16) String() string
type Unsigned8 ¶
type Unsigned8 struct { *Atomic[uint8] *CommonMath // contains filtered or unexported fields }
func NewUnsigned8 ¶
func (*Unsigned8) GetAppTag ¶
func (u *Unsigned8) GetAppTag() model.BACnetDataType
Source Files
¶
- primitivedata.go
- primitivedata_ApplicationTag.go
- primitivedata_Atomic.go
- primitivedata_BitString.go
- primitivedata_Boolean.go
- primitivedata_CharacterString.go
- primitivedata_ClosingTag.go
- primitivedata_CommonMath.go
- primitivedata_ContextTag.go
- primitivedata_Date.go
- primitivedata_Double.go
- primitivedata_Enumeration.go
- primitivedata_Integer.go
- primitivedata_Null.go
- primitivedata_ObjectIdentifier.go
- primitivedata_ObjectType.go
- primitivedata_OctetString.go
- primitivedata_OpeningTag.go
- primitivedata_Real.go
- primitivedata_Tag.go
- primitivedata_TagList.go
- primitivedata_Time.go
- primitivedata_Unsigned.go
- primitivedata_Unsigned16.go
- primitivedata_Unsigned8.go
Click to show internal directories.
Click to hide internal directories.