DeviceAppPacketSerializer.h Source File

Simu5G: DeviceAppPacketSerializer.h Source File
Simu5G
DeviceAppPacketSerializer.h
1//
2// Simu5G
3//
4// Copyright (C) 2019-2021 Giovanni Nardini, Giovanni Stea, Antonio Virdis et al. (University of Pisa)
5// Copyright (C) 2022-2026 Giovanni Nardini, Giovanni Stea et al. (University of Pisa)
6//
7// This file is part of a software released under the license included in file
8// "license.pdf". Please read LICENSE and README files before using it.
9// The above files and the present reference are part of the software itself,
10// and cannot be removed from it.
11//
12
13#ifndef _DEVAPPPACKETSERIALIZER_H_
14#define _DEVAPPPACKETSERIALIZER_H_
15
16#include <inet/common/packet/serializer/FieldsChunkSerializer.h>
17
18namespace simu5g {
19
20using namespace inet;
21
22enum DevAppCode { START_MECAPP_CODE, STOP_MECAPP_CODE, START_ACK_CODE, STOP_ACK_CODE, START_NACK_CODE, STOP_NACK_CODE };
23
45
46class DeviceAppMessageSerializer : public inet::FieldsChunkSerializer
47{
48 protected:
49 void serialize(MemoryOutputStream& stream, const Ptr<const Chunk>& chunk) const override;
50 const Ptr<Chunk> deserialize(MemoryInputStream& stream) const override;
51};
52
53} //namespace
54
55#endif
56
Definition DeviceAppPacketSerializer.h:47
Definition AlertReceiver.h:24