A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
node-printer.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Lawrence Livermore National Laboratory
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Peter D. Barnes, Jr. <pdbarnes@llnl.gov>
7 */
8
9#include "node-printer.h"
10
11#include "log.h"
12#include "simulator.h" // GetContext()
13
14#include <iomanip>
15
16/**
17 * \file
18 * \ingroup simulator
19 * ns3::DefaultNodePrinter implementation.
20 */
21
22namespace ns3
23{
24
25NS_LOG_COMPONENT_DEFINE("NodePrinter");
26
27void
28DefaultNodePrinter(std::ostream& os)
29{
31 {
32 os << "-1";
33 }
34 else
35 {
37 }
38}
39
40} // namespace ns3
@ NO_CONTEXT
Flag for events not associated with any particular context.
Definition simulator.h:199
static uint32_t GetContext()
Get the current simulation context.
Definition simulator.cc:307
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition log.h:191
void DefaultNodePrinter(std::ostream &os)
Default node id printer implementation.
Debug message logging.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Declaration of ns3::NodePrinter function pointer type and ns3::DefaultNodePrinter function.
ns3::Simulator declaration.