'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class message_helper

odtone::mih::message_helper

Synopsis

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


class message_helper {
public:
  // construct/copy/destruct
  message_helper(uint16, const id *);

  // friend functions
  friend oarchive & operator<<(message &, const message_helper &);
  friend iarchive & operator>>(message &, const message_helper &);
};

Description

Parsing/generating MIH messages is done using helper classes and operator overloading.

message_helper public construct/copy/destruct

  1. message_helper(uint16 mid, const id * dst);

    Construct a MIH Message helper.

    Parameters:

    dst

    The value of the MIH Message Destination MIHF ID.

    mid

    The value of the MIH Message ID.

message_helper friend functions

  1. friend oarchive & operator<<(message & msg, const message_helper & mh);

    Serialize a MIH message.

    Parameters:

    mh

    The message helper.

    msg

    MIH message to where serialize the data.

    Returns:

    The resulting output archive.

  2. friend iarchive & operator>>(message & msg, const message_helper & mh);

    Deserialize a MIH message.

    Deserialize a MIH message.

    Parameters:

    mh

    The message helper.

    The message helper.

    msg

    MIH message from where deserialize the data.

    MIH message from where deserialize the data.

    Returns:

    The resulting input archive.s

    Returns:

    The resulting input archive.


PrevUpHomeNext