A Discrete-Event Network Simulator
API
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 
25 namespace ns3
26 {
27 
33 class LteRlcSduStatusTag : public Tag
34 {
35  public:
37 
43  void SetStatus(uint8_t status);
49  uint8_t GetStatus() const;
50 
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 
64  {
65  FULL_SDU = 1,
69  ANY_SEGMENT = 5
70  };
71 
72  private:
73  uint8_t m_sduStatus;
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.