A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
des-metrics.h File Reference

ns3::DesMetrics declaration. More...

#include "nstime.h"
#include "singleton.h"
#include <fstream>
#include <mutex>
#include <stdint.h>
#include <string>
#include <vector>
Include dependency graph for des-metrics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.

Functions

 ns3::~DesMetrics () override
 Destructor, closes the trace file.
void ns3::Close ()
 Close the output file.
void ns3::Initialize (std::vector< std::string > args, std::string outDir="")
 Event trace data collector for the DES Metrics project.
void ns3::Trace (const Time &now, const Time &delay)
 Trace an event to self at the time it is scheduled.
void ns3::TraceWithContext (uint32_t context, const Time &now, const Time &delay)
 Trace an event (with context) at the time it is scheduled.

Variables

bool ns3::m_initialized
 Have we been initialized.
std::mutex ns3::m_mutex
 Mutex to control access to the output file.
std::ofstream ns3::m_os
 The output JSON trace file stream.
static std::string ns3::m_outputDir
 Cache the last-used output directory.
char ns3::m_separator
 The separator between event records.

Detailed Description

ns3::DesMetrics declaration.

Definition in file des-metrics.h.