1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
|
2 /* |
|
3 * Copyright (c) 2007 INRIA |
|
4 * All rights reserved. |
|
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 */ |
|
21 #ifndef EMPTY_TRACE_RESOLVER_H |
|
22 #define EMPTY_TRACE_RESOLVER_H |
|
23 |
|
24 #include "trace-resolver.h" |
|
25 |
|
26 namespace ns3 { |
|
27 |
|
28 class TraceContext; |
|
29 |
|
30 /** |
|
31 * \brief a TraceResolver instance which does not resolve anything. |
|
32 * \ingroup tracing |
|
33 * |
|
34 * Trying to resolve against this class will yield no matches and no |
|
35 * connections. Returning an instance of this class from a |
|
36 * CreateTraceResolver method is a hand way of not implementing |
|
37 * any Tracing code. |
|
38 */ |
|
39 class EmptyTraceResolver : public TraceResolver |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * \param o necessary context for this class. |
|
44 * |
|
45 * The only constructor exported by this class. |
|
46 */ |
|
47 EmptyTraceResolver (); |
|
48 }; |
|
49 |
|
50 }//namespace ns3 |
|
51 |
|
52 #endif /* EMPTY_TRACE_RESOLVER_H */ |
|