blob: 9ae24ac3d227a8816ed76bd77d4b4564dc92dd1d [file] [log] [blame]
Alexander Afanasyevc4f88282012-01-03 11:27:20 -08001/* -*- 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
Alexander Afanasyev49165862013-01-31 00:38:20 -080024#include "ipv4-app-tracer.h"
Alexander Afanasyevc4f88282012-01-03 11:27:20 -080025
26namespace ns3 {
27
28class Ipv4SeqsAppTracer : public Ipv4AppTracer
29{
30public:
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);
Alexander Afanasyev49165862013-01-31 00:38:20 -080043
Alexander Afanasyevc4f88282012-01-03 11:27:20 -080044 virtual void
45 Tx (std::string context,
46 const Ipv4Header &, Ptr<const Packet>, uint32_t);
47
48protected:
49 void
50 Reset ();
51
52protected:
53 std::ostream& m_os;
54};
55
56} // namespace ns3
57
58#endif // IPV4_AGGREGATE_APP_TRACER_H