src/wave/model/higher-tx-tag.h
changeset 10459 f2e90c12a44f
child 11161 e25365d372fb
equal deleted inserted replaced
10458:20987b07dbd4 10459:f2e90c12a44f
       
     1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
       
     2 /*
       
     3  * Copyright (c) 2008 INRIA
       
     4  * Copyright (c) 2013 Dalian University of Technology
       
     5  *
       
     6  * This program is free software; you can redistribute it and/or modify
       
     7  * it under the terms of the GNU General Public License version 2 as
       
     8  * published by the Free Software Foundation;
       
     9  *
       
    10  * This program is distributed in the hope that it will be useful,
       
    11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    13  * GNU General Public License for more details.
       
    14  *
       
    15  * You should have received a copy of the GNU General Public License
       
    16  * along with this program; if not, write to the Free Software
       
    17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
       
    18  *
       
    19  * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
       
    20  *         Junling Bu <linlinjavaer@gmail.com>
       
    21  */
       
    22 #ifndef HIGHER_DATA_TXVECTOR_TAG_H
       
    23 #define HIGHER_DATA_TXVECTOR_TAG_H
       
    24 
       
    25 #include "ns3/packet.h"
       
    26 #include "ns3/wifi-tx-vector.h"
       
    27 
       
    28 namespace ns3 {
       
    29 class Tag;
       
    30 
       
    31 /**
       
    32  * This tag will be used to support higher layer control data rate
       
    33  * and tx power level.
       
    34  */
       
    35 class HigherDataTxVectorTag : public Tag
       
    36 {
       
    37 public:
       
    38   HigherDataTxVectorTag (void);
       
    39   HigherDataTxVectorTag (WifiTxVector dataTxVector, bool adapter);
       
    40   virtual ~HigherDataTxVectorTag (void);
       
    41 
       
    42   WifiTxVector GetDataTxVector (void) const;
       
    43   bool IsAdapter (void) const;
       
    44 
       
    45   static TypeId GetTypeId (void);
       
    46   virtual TypeId GetInstanceTypeId (void) const;
       
    47   virtual uint32_t GetSerializedSize (void) const;
       
    48   virtual void Serialize (TagBuffer i) const;
       
    49   virtual void Deserialize (TagBuffer i);
       
    50   virtual void Print (std::ostream &os) const;
       
    51 
       
    52 private:
       
    53   WifiTxVector m_dataTxVector;
       
    54   bool m_adapter;
       
    55 };
       
    56 
       
    57 } // namespace ns3
       
    58 
       
    59 #endif /* HIGHER_DATA_TXVECTOR_TAG_H*/