/*! * \file ip_offline_layer.hh * \brief Header file for ITS IP protocol layer definition. * \author ETSI TTF T041 * \copyright ETSI Copyright Notification * No part may be reproduced except as authorized by written permission. * The copyright and the foregoing restriction extend to reproduction in all media. * All rights reserved. * \version 0.1 */ #pragma once #include "params.hh" #include "t_layer.hh" class ip_offline_layer : public layer { params _params; //! Layer parameters private: //! \privatesection unsigned long get_host_id(const std::string& p_host_name); public: //! \publicsection /*! * \brief Specialised constructor * Create a new instance of the ip_offline_layer class * \param[in] p_type \todo * \param[in] p_param \todo */ ip_offline_layer(const std::string& p_type, const std::string& p_param); /*! * \brief Default destructor */ virtual ~ip_offline_layer(){}; /*! * \virtual * \fn void send_data(OCTETSTRING& data, params& p_params); * \brief Send bytes formated data to the lower layers * \param[in] p_data The data to be sent * \param[in] p_params Some parameters to overwrite default value of the lower layers parameters */ virtual void send_data(OCTETSTRING& p_data, params& p_params); /*! * \virtual * \fn void receive_data(OCTETSTRING& data, params& p_params); * \brief Receive bytes formated data from the lower layers * \param[in] p_data The bytes formated data received * \param[in] p_params Some lower layers parameters values when data was received */ virtual void receive_data(OCTETSTRING& p_data, params& p_params); }; // End of class ip_offline_layer