A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
data-output-interface.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 Drexel University
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Joe Kopena (tjkopena@cs.drexel.edu)
7 */
8
10
11#include "ns3/log.h"
12
13using namespace ns3;
14
15NS_LOG_COMPONENT_DEFINE("DataOutputInterface");
16
17//--------------------------------------------------------------
18//----------------------------------------------
23
28
29/* static */
32{
33 static TypeId tid = TypeId("ns3::DataOutputInterface").SetParent<Object>().SetGroupName("Stats")
34 // No AddConstructor because this is an abstract class.
35 ;
36 return tid;
37}
38
39void
41{
42 NS_LOG_FUNCTION(this);
43
45 // end DataOutputInterface::DoDispose
46}
47
48void
49DataOutputInterface::SetFilePrefix(const std::string prefix)
50{
51 NS_LOG_FUNCTION(this << prefix);
52
53 m_filePrefix = prefix;
54}
55
56std::string
58{
59 NS_LOG_FUNCTION(this);
60
61 return m_filePrefix;
62}
void DoDispose() override
Destructor implementation.
std::string GetFilePrefix() const
Gets the file prefix of the DataOutputInterface.
static TypeId GetTypeId()
Register this type.
std::string m_filePrefix
File prefix for the DataOutputInterface.
void SetFilePrefix(const std::string prefix)
Sets the DataOutputInterface prefix to the provided prefix.
A base class which provides memory management and object aggregation.
Definition object.h:78
virtual void DoDispose()
Destructor implementation.
Definition object.cc:433
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition log.h:191
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Every class exported by the ns3 library is enclosed in the ns3 namespace.