'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Struct template base_tlv_

odtone::mih::base_tlv_

Synopsis

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

template<typename ValueT, ValueT Value> 
struct base_tlv_ {

  // public static functions
  template<typename T> static bool serialize(iarchive &, T &);
  template<typename T> static void serialize(oarchive &, T &);
};

Description

Base TLV.

base_tlv_ public static functions

  1. template<typename T> static bool serialize(iarchive & ar, T & val);

    Deserialize the TLV type value.

    Parameters:

    ar

    The input archive from where extract the TLV value.

    val

    The value to deserialize.

    Returns:

    True if the value was deserialized or false otherwise.

  2. template<typename T> static void serialize(oarchive & ar, T & val);

    Serialize the TLV type value.

    Parameters:

    ar

    The output archive to where insert the TLV value.

    val

    The value to serialize.


PrevUpHomeNext