A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lte-rlc-sdu-status-tag.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Manuel Requena <manuel.requena@cttc.es>
7 */
8
9#ifndef LTE_RLC_SDU_STATUS_TAG_H
10#define LTE_RLC_SDU_STATUS_TAG_H
11
12#include "ns3/tag.h"
13
14namespace ns3
15{
16
17/**
18 * @brief This class implements a tag that carries the status of a RLC SDU
19 * for the fragmentation process
20 * Status of RLC SDU
21 */
22class LteRlcSduStatusTag : public Tag
23{
24 public:
26
27 /**
28 * Set status function
29 *
30 * @param status the status
31 */
32 void SetStatus(uint8_t status);
33 /**
34 * Get status function
35 *
36 * @returns the status
37 */
38 uint8_t GetStatus() const;
39
40 /**
41 * @brief Get the type ID.
42 * @return the object TypeId
43 */
44 static TypeId GetTypeId();
45 TypeId GetInstanceTypeId() const override;
46 uint32_t GetSerializedSize() const override;
47 void Serialize(TagBuffer i) const override;
48 void Deserialize(TagBuffer i) override;
49 void Print(std::ostream& os) const override;
50
51 /// SduStatus_t enumeration
60
61 private:
62 uint8_t m_sduStatus; ///< SDU status
63};
64
65}; // namespace ns3
66
67#endif // LTE_RLC_SDU_STATUS_TAG_H
This class implements a tag that carries the status of a RLC SDU for the fragmentation process Status...
static TypeId GetTypeId()
Get the type ID.
void Serialize(TagBuffer i) const override
uint8_t GetStatus() const
Get status function.
uint32_t GetSerializedSize() const override
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
void Deserialize(TagBuffer i) override
void Print(std::ostream &os) const override
SduStatus_t
SduStatus_t enumeration.
void SetStatus(uint8_t status)
Set status function.
read and write tag data
Definition tag-buffer.h:41
tag a set of bytes in a packet
Definition tag.h:28
a unique identifier for an interface.
Definition type-id.h:48
Every class exported by the ns3 library is enclosed in the ns3 namespace.