famouso::mw::attributes::access::AttributeSet_RT Class Reference
#include <AttributeSet_RT.h>
![](classfamouso_1_1mw_1_1attributes_1_1access_1_1AttributeSet__RT.gif)
Public Member Functions | |
template<typename Attr > | |
Attr * | find_rt () |
Searches for the attribute given as a template argument in the binary representation of this attribute set and returns it. | |
template<typename Attr > | |
const Attr * | find_rt () const |
Searches for the attribute given as a template argument in the binary representation of this attribute set and returns it. | |
uint16_t | length () const |
Returns the number of bytes used for the complete encoded attribute set. | |
uint16_t | size () const |
Returns the number of attributes encoded in this set. | |
void | content (uint8_t *buffer) const |
Copies the content of this set (i.e. the encoded attributes) to the specified buffer. | |
Protected Member Functions | |
AttributeSet_RT () |
Constructor & Destructor Documentation
famouso::mw::attributes::access::AttributeSet_RT::AttributeSet_RT | ( | ) | [inline, protected] |
Member Function Documentation
void famouso::mw::attributes::access::AttributeSet_RT::content | ( | uint8_t * | buffer | ) | const [inline] |
Copies the content of this set (i.e. the encoded attributes) to the specified buffer.
References famouso::mw::attributes::access::AttributeSetHeader_RT::contentLength(), and famouso::mw::attributes::access::AttributeSetHeader_RT::headerLength().
const Attr* famouso::mw::attributes::access::AttributeSet_RT::find_rt | ( | ) | const [inline] |
Searches for the attribute given as a template argument in the binary representation of this attribute set and returns it.
The target attribute is searched for using the high density property and the ID of the given attribute type. The returned instance can then be used to access the value. If the given attribute could not be found in the set, NULL is returned.
- Template Parameters:
-
Attr The attribute type which should be searched for
- Returns:
- A constant instance of Attr or NULL if the attribute could not be found
Attr* famouso::mw::attributes::access::AttributeSet_RT::find_rt | ( | ) | [inline] |
Searches for the attribute given as a template argument in the binary representation of this attribute set and returns it.
The target attribute is searched for using the high density property and the ID of the given attribute type. The returned instance can then be used to access the value. If the given attribute could not be found in the set, NULL is returned.
- Template Parameters:
-
Attr The attribute type which should be searched for
- Returns:
- An instance of Attr or NULL if the attribute could not be found
Referenced by famouso::mw::nl::AWDSNL::deliver().
uint16_t famouso::mw::attributes::access::AttributeSet_RT::length | ( | ) | const [inline] |
Returns the number of bytes used for the complete encoded attribute set.
This also includes the number of bytes used for the set header itself.
- Returns:
- The number of bytes used for this attribute set
References famouso::mw::attributes::access::AttributeSetHeader_RT::contentLength(), and famouso::mw::attributes::access::AttributeSetHeader_RT::headerLength().
Referenced by size().
uint16_t famouso::mw::attributes::access::AttributeSet_RT::size | ( | ) | const [inline] |
Returns the number of attributes encoded in this set.
- Returns:
- The number of encoded attributes
References famouso::mw::attributes::access::AttributeSetHeader_RT::contentLength(), famouso::mw::attributes::access::AttributeSetHeader_RT::headerLength(), and length().
The documentation for this class was generated from the following file:
- include/mw/attributes/access/AttributeSet_RT.h