74 static std::list<std::ostream*> *streams = 0;
90 *pstreams =
new std::list<std::ostream*> ();
138 (*pl)->remove (stream);
186 struct sigaction hdl;
188 sigaction (SIGSEGV, &hdl, 0);
190 std::list<std::ostream*> *l = *pl;
195 std::ostream*
s (l->front ());
201 hdl.sa_handler=SIG_DFL;
202 sigaction (SIGSEGV, &hdl, 0);
Declaration of RegisterStream(), UnregisterStream(), and FlushStreams().
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
void sigHandler(int sig)
Overrides normal SIGSEGV handler once the HandleTerminate function is run.
void FlushStreams(void)
Flush all currently registered streams.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
Destructor for the list of fatal streams.
std::list< std::ostream * > * GetStreamList(void)
Get the stream list, initializing it if necessary.
void RegisterStream(std::ostream *stream)
Register a stream to be flushed on abnormal exit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::list< std::ostream * > ** PeekStreamList(void)
Static variable pointing to the list of output streams to be flushed on fatal errors.
void UnregisterStream(std::ostream *stream)
Unregister a stream for flushing on abnormal exit.