class BACnet::Object
 
  - BACnet::Object
- BinData
- Reference
- Object
Defined in:
bacnet/object.crConstant Summary
- 
        ENDIAN = ["big"]
- 
        KLASS_NAME = [BACnet::Object]
- 
        PARTS = [{type: "bitfield", name: 3, cls: BACnet::Object, onlyif: nil, verify: nil}, {type: "basic", name: ext_tag, cls: UInt8, onlyif: -> do short_tag == 15_u8 end, verify: nil, value: nil, endian: nil}, {type: "basic", name: uint8_length, cls: UInt8, onlyif: -> do uint3_length == 5_u8 end, verify: nil, value: nil, endian: nil}, {type: "basic", name: uint16_length, cls: UInt16, onlyif: -> do (uint3_length == 5_u8) && (uint8_length == 254_u8) end, verify: nil, value: nil, endian: nil}, {type: "basic", name: uint32_length, cls: UInt32, onlyif: -> do (uint3_length == 5_u8) && (uint8_length == 255_u8) end, verify: nil, value: nil, endian: nil}, {type: "bytes", name: data, cls: Slice(UInt8), onlyif: nil, verify: nil, length: -> do length end, value: nil}] of Nil
- 
        REMAINING = [] of Nil
- 
        STRING_ENCODING = {0_u8 => "UTF-8", 1_u8 => "UTF-16BE", 2_u8 => "EUC-JISX0213", 3_u8 => "UCS-4BE", 4_u8 => "UCS-2BE", 5_u8 => "ISO8859-1"}
Class Method Summary
Macro Summary
- ba_cnet_apdu_indicator(name, onlyif = nil, verify = nil, value = nil)
- ba_cnet_bit_string(name, onlyif = nil, verify = nil, value = nil)
- ba_cnet_date(name, onlyif = nil, verify = nil, value = nil)
- ba_cnet_npdu(name, onlyif = nil, verify = nil, value = nil)
- ba_cnet_npdu_destination(name, onlyif = nil, verify = nil, value = nil)
- ba_cnet_npdu_source(name, onlyif = nil, verify = nil, value = nil)
- ba_cnet_object(name, onlyif = nil, verify = nil, value = nil)
- ba_cnet_object_identifier(name, onlyif = nil, verify = nil, value = nil)
- ba_cnet_property_identifier(name, onlyif = nil, verify = nil, value = nil)
- ba_cnet_time(name, onlyif = nil, verify = nil, value = nil)
Instance Method Summary
- #__format__ : IO::ByteFormat
- #closing?
- #context_specific : Bool
- #context_specific=(context_specific : UInt8)
- #context_specific=(value : Bool)
- #data : Bytes
- #data=(data : Bytes)
- #ext_tag : UInt8
- #ext_tag=(ext_tag : UInt8)
- 
        #inspect(io : IO) : Nil
        
          Appends a String representation of this object which includes its class name, its object address and the values of all instance variables. 
- #is_null?
- #length
- #length=(size : Int)
- #objects : Array(Object | Objects)
- #opening?
- #set_value(value, context_specific : Bool = false, tag : Int | Nil = nil)
- #short_tag : UInt8
- #short_tag=(short_tag : UInt8)
- #tag
- #tag=(value : Int)
- #to_bit_string
- #to_bool
- #to_date
- #to_encoded_string
- #to_f32
- #to_f64
- #to_i
- #to_i16
- #to_i32
- #to_i64
- #to_i8
- #to_object_id
- #to_property_id
- #to_string
- #to_time
- #to_u16
- #to_u32
- #to_u64
- #to_u8
- #uint16_length : UInt16
- #uint16_length=(uint16_length : UInt16)
- #uint32_length : UInt32
- #uint32_length=(uint32_length : UInt32)
- 
        #uint3_length : UInt8
        
          if context specific then the length will be set to 6 
- 
        #uint3_length=(uint3_length : UInt8)
        
          if context specific then the length will be set to 6 
- #uint8_length : UInt8
- #uint8_length=(uint8_length : UInt8)
- 
        #value
        
          ameba:disable Metrics/CyclomaticComplexity 
- 
        #value=(var)
        
          ameba:disable Metrics/CyclomaticComplexity 
Class Method Detail
Macro Detail
Instance Method Detail
        
        def inspect(io : IO) : Nil
        #
      
      
        
              Description copied from class Reference
            
          
          Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
  def initialize(@name : String, @age : Int32)
  end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>