1
0
Fork 0

add some accesses'ors for the range metadata

This commit is contained in:
Kevin Matz 2022-12-07 21:57:32 -05:00
parent 2b5db0febd
commit 382f2d26fd
1 changed files with 26 additions and 0 deletions

View File

@ -94,6 +94,32 @@ struct Range
uint32_t incriment = 0; //!< property size (number of octets)
uint32_t count = 0; //!< number of properties
/**
* @brief addressType
* @return
*/
inline const address_type & getAddressType() const { return type_; }
/**
* @brief dataLength
* @return
*/
inline element_length elementLength() const { return type_.address_length; }
/**
* @brief dataType
* @return
*/
inline data_type_t type() const { return type_.data_type; }
/**
* @brief isAbsolute
* @return
*/
inline bool isAbsolute() const { return !type_.relative; }
/**
* @brief isRelative
* @return
*/
inline bool isRelative() const { return type_.relative; }
size_t streamSize() const override;
void iStream(PDU::Stream) override;
void oStream(PDU::Stream) const override;