src/core/trace-source.cc
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sun, 02 Mar 2008 21:12:21 +0100
changeset 2532 86a40c7cbfe9
parent 1414 1e57b16f97fd
permissions -rw-r--r--
register and unregister the NodeList as a config root namespace
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1414
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     2
/*
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     3
 * Copyright (c) 2007 INRIA
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     4
 *
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License version 2 as
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     7
 * published by the Free Software Foundation;
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     8
 *
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    12
 * GNU General Public License for more details.
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    13
 *
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    17
 *
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    18
 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    19
 */
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    20
#include "trace-source.h"
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    21
#include "trace-context.h"
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    22
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    23
namespace ns3 {
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    24
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    25
void 
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    26
TraceSource::AddCallback (CallbackBase const & callback)
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    27
{
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    28
  AddCallback (callback, TraceContext ());
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    29
}
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    30
1e57b16f97fd add an overload of the TraceSource::AddCallback method
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    31
} // namespace ns3