A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
fatal-impl.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2010 NICTA
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Quincy Tse <quincy.tse@nicta.com.au>
18 */
19
20#ifndef FATAL_IMPL_H
21#define FATAL_IMPL_H
22
23#include <ostream>
24
37namespace ns3
38{
39
44namespace FatalImpl
45{
46
60void RegisterStream(std::ostream* stream);
61
75void UnregisterStream(std::ostream* stream);
76
95void FlushStreams();
96
97} // namespace FatalImpl
98} // namespace ns3
99
100#endif
void UnregisterStream(std::ostream *stream)
Unregister a stream for flushing on abnormal exit.
Definition: fatal-impl.cc:143
void RegisterStream(std::ostream *stream)
Register a stream to be flushed on abnormal exit.
Definition: fatal-impl.cc:136
void FlushStreams()
Flush all currently registered streams.
Definition: fatal-impl.cc:187
Every class exported by the ns3 library is enclosed in the ns3 namespace.