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 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Manuel Requena <manuel.requena@cttc.es>
18 */
19
20#ifndef LTE_RLC_SDU_STATUS_TAG_H
21#define LTE_RLC_SDU_STATUS_TAG_H
22
23#include "ns3/tag.h"
24
25namespace ns3
26{
27
28/**
29 * \brief This class implements a tag that carries the status of a RLC SDU
30 * for the fragmentation process
31 * Status of RLC SDU
32 */
33class LteRlcSduStatusTag : public Tag
34{
35 public:
37
38 /**
39 * Set status function
40 *
41 * \param status the status
42 */
43 void SetStatus(uint8_t status);
44 /**
45 * Get status function
46 *
47 * \returns the status
48 */
49 uint8_t GetStatus() const;
50
51 /**
52 * \brief Get the type ID.
53 * \return the object TypeId
54 */
55 static TypeId GetTypeId();
56 TypeId GetInstanceTypeId() const override;
57 uint32_t GetSerializedSize() const override;
58 void Serialize(TagBuffer i) const override;
59 void Deserialize(TagBuffer i) override;
60 void Print(std::ostream& os) const override;
61
62 /// SduStatus_t enumeration
64 {
69 ANY_SEGMENT = 5
70 };
71
72 private:
73 uint8_t m_sduStatus; ///< SDU status
74};
75
76}; // namespace ns3
77
78#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.
uint8_t m_sduStatus
SDU status.
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:52
tag a set of bytes in a packet
Definition: tag.h:39
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.