'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class template tlv_type_

odtone::mih::tlv_type_

Synopsis

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

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

  // construct/copy/destruct
  tlv_type_(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 mandatory TLVs and for offering mechanisms to serialize and deserialize them.

tlv_type_ public construct/copy/destruct

  1. tlv_type_(T & val);

    Construct a TLV of a particular type.

    Parameters:

    val

    The 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 extract 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