'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class template tlv_type_<boost::optional< T >, TLV>

odtone::mih::tlv_type_<boost::optional< T >, TLV>

Synopsis

// In header: </home/carlos/Projectos/odtone/inc/odtone/mih/tlv.hpp>

template<typename T, typename TLV> 
class tlv_type_<boost::optional< T >, TLV> {
public:
  // types
  typedef tlv_type_< boost::optional< T >, TLV > tlv_type;

  // construct/copy/destruct
  tlv_type_(boost::optional< T > &);

  // public member functions
  void serialize(iarchive &) const;
  void serialize(oarchive &) const;
};

Description

The MIH types support serialization and deserialization for the input archive and output archive. However, these particular archives do not include the TLVs fields. So this class is responsible for managing the optional TLVs and for offering mechanisms to serialize and deserialize them.

tlv_type_ public construct/copy/destruct

  1. tlv_type_(boost::optional< T > & val);

    Construct a TLV of a particular type.

    Parameters:

    val

    value of the TLV.

tlv_type_ public member functions

  1. void serialize(iarchive & ar) const;

    Deserialize the TLV type value.

    Parameters:

    ar

    The input archive from where parse the TLV value.

  2. void serialize(oarchive & ar) const;

    Serialize the TLV type value.

    Parameters:

    ar

    The output archive to where serialize the TLV value.


PrevUpHomeNext