author | Pavel Boyko <boyko@iitp.ru> |
Tue, 16 Jun 2009 17:58:16 +0400 | |
changeset 5074 | 355de6af8ea9 |
parent 4404 | e10005ac0701 |
child 4692 | f4cd995f1718 |
permissions | -rw-r--r-- |
4404
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
2 |
/* |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
3 |
* Copyright (c) 2009 MIRKO BANCHI |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
4 |
* |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation; |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
8 |
* |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
13 |
* |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
17 |
* |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
18 |
* Author: Mirko Banchi <mk.banchi@gmail.com> |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
19 |
*/ |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
20 |
#ifndef QOS_TAG_H |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
21 |
#define QOS_TAG_H |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
22 |
|
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
23 |
#include "ns3/packet.h" |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
24 |
|
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
25 |
namespace ns3 { |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
26 |
|
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
27 |
class Tag; |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
28 |
|
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
29 |
class QosTag : public Tag |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
30 |
{ |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
31 |
public: |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
32 |
static TypeId GetTypeId (void); |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
33 |
virtual TypeId GetInstanceTypeId (void) const; |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
34 |
|
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
35 |
QosTag (); |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
36 |
virtual void Serialize (TagBuffer i) const; |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
37 |
virtual void Deserialize (TagBuffer i); |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
38 |
virtual uint32_t GetSerializedSize () const; |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
39 |
virtual void Print (std::ostream &os) const; |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
40 |
|
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
41 |
uint8_t Get (void) const; |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
42 |
void Set (uint8_t tid); |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
43 |
private: |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
44 |
uint8_t m_tid; |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
45 |
}; |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
46 |
|
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
47 |
} //namespace ns3 |
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
48 |
|
e10005ac0701
shared facility for qos support
Mirko Banchi <mk.banchi@gmail.com>
parents:
diff
changeset
|
49 |
#endif /* QOS_TAG_H */ |