class DataElement

Defined at line 2512 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.bredr/fuchsia.bluetooth.bredr/cpp/fidl/fuchsia.bluetooth.bredr/cpp/natural_types.h

A DataElement is one element in a SDP record. SDP attributes and other parameters are

expresssed in DataElements.

Public Methods

void DataElement (DataElement && other)
DataElement & operator= (DataElement && other)
void DataElement (const DataElement & other)
DataElement & operator= (const DataElement & other)
bool operator== (const DataElement & other)
bool operator!= (const DataElement & other)
bool IsUnknown ()
::fuchsia_bluetooth_bredr::DataElement::Tag Which ()
DataElement WithInt8 (int8_t val)
const ::fidl::internal::UnionMemberView<1, Storage_> int8 ()
::fidl::internal::UnionMemberView<1, Storage_> int8 ()
DataElement & int8 (int8_t value)

Sets the union to hold the int8 member.

DataElement WithInt16 (int16_t val)
const ::fidl::internal::UnionMemberView<2, Storage_> int16 ()
::fidl::internal::UnionMemberView<2, Storage_> int16 ()
DataElement & int16 (int16_t value)

Sets the union to hold the int16 member.

DataElement WithInt32 (int32_t val)
const ::fidl::internal::UnionMemberView<3, Storage_> int32 ()
::fidl::internal::UnionMemberView<3, Storage_> int32 ()
DataElement & int32 (int32_t value)

Sets the union to hold the int32 member.

DataElement WithInt64 (int64_t val)
const ::fidl::internal::UnionMemberView<4, Storage_> int64 ()
::fidl::internal::UnionMemberView<4, Storage_> int64 ()
DataElement & int64 (int64_t value)

Sets the union to hold the int64 member.

DataElement WithUint8 (uint8_t val)
const ::fidl::internal::UnionMemberView<5, Storage_> uint8 ()
::fidl::internal::UnionMemberView<5, Storage_> uint8 ()
DataElement & uint8 (uint8_t value)

Sets the union to hold the uint8 member.

DataElement WithUint16 (uint16_t val)
const ::fidl::internal::UnionMemberView<6, Storage_> uint16 ()
::fidl::internal::UnionMemberView<6, Storage_> uint16 ()
DataElement & uint16 (uint16_t value)

Sets the union to hold the uint16 member.

DataElement WithUint32 (uint32_t val)
const ::fidl::internal::UnionMemberView<7, Storage_> uint32 ()
::fidl::internal::UnionMemberView<7, Storage_> uint32 ()
DataElement & uint32 (uint32_t value)

Sets the union to hold the uint32 member.

DataElement WithUint64 (uint64_t val)
const ::fidl::internal::UnionMemberView<8, Storage_> uint64 ()
::fidl::internal::UnionMemberView<8, Storage_> uint64 ()
DataElement & uint64 (uint64_t value)

Sets the union to hold the uint64 member.

DataElement WithStr (::std::vector<uint8_t> val)
const ::fidl::internal::UnionMemberView<9, Storage_> str ()
::fidl::internal::UnionMemberView<9, Storage_> str ()
DataElement & str (::std::vector<uint8_t> value)

Sets the union to hold the str member.

DataElement WithUrl (::std::string val)
const ::fidl::internal::UnionMemberView<10, Storage_> url ()
::fidl::internal::UnionMemberView<10, Storage_> url ()
DataElement & url (::std::string value)

Sets the union to hold the url member.

DataElement WithUuid (::fuchsia_bluetooth::Uuid val)
const ::fidl::internal::UnionMemberView<11, Storage_> uuid ()
::fidl::internal::UnionMemberView<11, Storage_> uuid ()
DataElement & uuid (::fuchsia_bluetooth::Uuid value)

Sets the union to hold the uuid member.

DataElement WithB (bool val)
const ::fidl::internal::UnionMemberView<12, Storage_> b ()
::fidl::internal::UnionMemberView<12, Storage_> b ()
DataElement & b (bool value)

Sets the union to hold the b member.

DataElement WithSequence (::std::vector< ::fidl::Box< ::fuchsia_bluetooth_bredr::DataElement>> val)
const ::fidl::internal::UnionMemberView<13, Storage_> sequence ()
::fidl::internal::UnionMemberView<13, Storage_> sequence ()
DataElement & sequence (::std::vector< ::fidl::Box< ::fuchsia_bluetooth_bredr::DataElement>> value)

Sets the union to hold the sequence member.

DataElement WithAlternatives (::std::vector< ::fidl::Box< ::fuchsia_bluetooth_bredr::DataElement>> val)
const ::fidl::internal::UnionMemberView<14, Storage_> alternatives ()
::fidl::internal::UnionMemberView<14, Storage_> alternatives ()
DataElement & alternatives (::std::vector< ::fidl::Box< ::fuchsia_bluetooth_bredr::DataElement>> value)

Sets the union to hold the alternatives member.

void DataElement (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Enumerations

enum Tag
Name Value
kInt8 1
kInt16 2
kInt32 3
kInt64 4
kUint8 5
kUint16 6
kUint32 7
kUint64 8
kStr 9
kUrl 10
kUuid 11
kB 12
kSequence 13
kAlternatives 14
_do_not_handle_this__write_a_default_case_instead ::std::numeric_limits<::fidl_union_tag_t>::max()

TODO: share union tag types between wire

&

natural.

Defined at line 2534 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.bredr/fuchsia.bluetooth.bredr/cpp/fidl/fuchsia.bluetooth.bredr/cpp/natural_types.h

Friends

class NaturalUnionCodingTraits