Alexander Afanasyev | c4f8828 | 2012-01-03 11:27:20 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2011 UCLA |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation; |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 | * |
| 18 | * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 19 | */ |
| 20 | |
| 21 | #ifndef IPV4_SEQS_APP_TRACER_H |
| 22 | #define IPV4_SEQS_APP_TRACER_H |
| 23 | |
| 24 | #include "ns3/ipv4-app-tracer.h" |
| 25 | |
| 26 | namespace ns3 { |
| 27 | |
| 28 | class Ipv4SeqsAppTracer : public Ipv4AppTracer |
| 29 | { |
| 30 | public: |
| 31 | Ipv4SeqsAppTracer (std::ostream &os, Ptr<Node> node, const std::string &appId = "*"); |
| 32 | virtual ~Ipv4SeqsAppTracer () { }; |
| 33 | |
| 34 | virtual void |
| 35 | PrintHeader (std::ostream &os) const; |
| 36 | |
| 37 | virtual void |
| 38 | Print (std::ostream &os) const; |
| 39 | |
| 40 | virtual void |
| 41 | Rx (std::string context, |
| 42 | const Ipv4Header &, Ptr<const Packet>, uint32_t); |
| 43 | |
| 44 | virtual void |
| 45 | Tx (std::string context, |
| 46 | const Ipv4Header &, Ptr<const Packet>, uint32_t); |
| 47 | |
| 48 | protected: |
| 49 | void |
| 50 | Reset (); |
| 51 | |
| 52 | protected: |
| 53 | std::ostream& m_os; |
| 54 | }; |
| 55 | |
| 56 | } // namespace ns3 |
| 57 | |
| 58 | #endif // IPV4_AGGREGATE_APP_TRACER_H |