'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class template tlv_cast_

odtone::mih::tlv_cast_

Synopsis

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

template<typename T, typename TLV> 
class tlv_cast_ {
public:

  // public member functions
  tlv_type operator()(const T &) const;
  tlv_optional_type operator()(const boost::optional< T > &) const;
};

Description

Cast between the number of TLV and the data type presented in it, and the correspondent TLV type.

tlv_cast_ public member functions

  1. tlv_type operator()(const T & val) const;

    Cast between the number of TLV and the data type presented in it, and the correspondent TLV type.

    Parameters:

    val

    The value of the TLV.

    Returns:

    The correspondent TLV type.

  2. tlv_optional_type operator()(const boost::optional< T > & val) const;

    Cast between the number of TLV and the data type presented in it, and the correspondent TLV type. However it supports optional value.

    Parameters:

    val

    The value of the TLV.

    Returns:

    The correspondent TLV type.


PrevUpHomeNext