// Custom includes
#include <senf/Packets/Packets.hh>
#include "TLVParser.hh"
+#include "MIHMessageRegistry.hh"
//#include "MIHPacket.mpp"
-///////////////////////////////hh.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
namespace senf {
- struct MIHMessageRegistry {
- // MIH messages registry
- typedef boost::uint16_t key_t;
- };
-
-# define SENF_MIH_PACKET_REGISTRY_REGISTER( packet ) \
- SENF_PACKET_REGISTRY_REGISTER( \
- senf::MIHMessageRegistry, packet::type::MESSAGE_ID, packet )
-
-
/** \brief Parse a MIH packet
Parser implementing the MIH header. The fields implemented are:
: public PacketTypeBase,
public PacketTypeMixin<MIHPacketType, MIHMessageRegistry>
{
-#ifndef DOXYGEN
typedef PacketTypeMixin<MIHPacketType, MIHMessageRegistry> mixin;
-#endif
typedef ConcretePacket<MIHPacketType> packet; ///< MIH packet typedef
typedef MIHPacketParser parser; ///< typedef to the parser of MIH packet
static void dump(packet p, std::ostream &os);
static void finalize(packet p);
static factory_t nextPacketType(packet p);
+
+ static std::pair<bool, std::string> validate(packet p);
};
/** \brief MIH packet typedef
: public PacketTypeBase,
public PacketTypeMixin<MIHGenericPayloadPacketType>
{
-#ifndef DOXYGEN
typedef PacketTypeMixin<MIHGenericPayloadPacketType> mixin;
-#endif
typedef ConcretePacket<MIHGenericPayloadPacketType> packet; ///< MIH Payload packet typedef
typedef MIHGenericPayloadPacketParser parser; ///< typedef to the parser of MIH Payload packet
}
-///////////////////////////////hh.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
//#include "MIHPacket.cci"
//#include "MIHPacket.ct"
//#include "MIHPacket.cti"