6#include <logicalaccess/lla_core_api.hpp>
27 explicit TLV(uint8_t t);
50 uint8_t value_u1()
const;
60 void value(
unsigned char v);
76 void value(std::vector<TLVPtr> tlv);
83 TLVPtr get_child(uint8_t tag)
const;
85 std::vector<TLVPtr> get_childs()
const;
87 uint8_t getSizeTag()
const;
88 void setSizeTag(uint8_t tag);
92 static TLVPtr get_child(std::vector<TLVPtr> tlvs, uint8_t tag,
bool required =
true);
94 static std::vector<TLVPtr> parse_tlvs(
const ByteVector &bytes,
95 size_t &bytes_consumed);
96 static std::vector<TLVPtr> parse_tlvs(
const ByteVector &bytes,
bool strict =
false);
97 static ByteVector value_tlvs(std::vector<TLVPtr> tlvs);
uint8_t tag_
Definition: tlv.hpp:101
ByteVector sizeVector_
Definition: tlv.hpp:100
uint8_t sizeTag_
Definition: tlv.hpp:102
ByteVector value_
Definition: tlv.hpp:103
TLV & operator=(const TLV &)=delete
TLV & operator=(TLV &&)=delete
std::vector< TLVPtr > subTLVs_
Definition: tlv.hpp:104
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
std::shared_ptr< TLV > TLVPtr
Definition: lla_fwd.hpp:77