A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
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
9
#include "
data-output-interface.h
"
10
11
#include "ns3/log.h"
12
13
using namespace
ns3
;
14
15
NS_LOG_COMPONENT_DEFINE
(
"DataOutputInterface"
);
16
17
//--------------------------------------------------------------
18
//----------------------------------------------
19
DataOutputInterface::DataOutputInterface
()
20
{
21
NS_LOG_FUNCTION
(
this
);
22
}
23
24
DataOutputInterface::~DataOutputInterface
()
25
{
26
NS_LOG_FUNCTION
(
this
);
27
}
28
29
/* static */
30
TypeId
31
DataOutputInterface::GetTypeId
()
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
39
void
40
DataOutputInterface::DoDispose
()
41
{
42
NS_LOG_FUNCTION
(
this
);
43
44
Object::DoDispose
();
45
// end DataOutputInterface::DoDispose
46
}
47
48
void
49
DataOutputInterface::SetFilePrefix
(
const
std::string prefix)
50
{
51
NS_LOG_FUNCTION
(
this
<< prefix);
52
53
m_filePrefix
= prefix;
54
}
55
56
std::string
57
DataOutputInterface::GetFilePrefix
()
const
58
{
59
NS_LOG_FUNCTION
(
this
);
60
61
return
m_filePrefix
;
62
}
ns3::DataOutputInterface::DoDispose
void DoDispose() override
Destructor implementation.
Definition
data-output-interface.cc:40
ns3::DataOutputInterface::GetFilePrefix
std::string GetFilePrefix() const
Gets the file prefix of the DataOutputInterface.
Definition
data-output-interface.cc:57
ns3::DataOutputInterface::~DataOutputInterface
~DataOutputInterface() override
Definition
data-output-interface.cc:24
ns3::DataOutputInterface::GetTypeId
static TypeId GetTypeId()
Register this type.
Definition
data-output-interface.cc:31
ns3::DataOutputInterface::m_filePrefix
std::string m_filePrefix
File prefix for the DataOutputInterface.
Definition
data-output-interface.h:61
ns3::DataOutputInterface::SetFilePrefix
void SetFilePrefix(const std::string prefix)
Sets the DataOutputInterface prefix to the provided prefix.
Definition
data-output-interface.cc:49
ns3::DataOutputInterface::DataOutputInterface
DataOutputInterface()
Definition
data-output-interface.cc:19
ns3::Object
A base class which provides memory management and object aggregation.
Definition
object.h:78
ns3::Object::DoDispose
virtual void DoDispose()
Destructor implementation.
Definition
object.cc:433
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition
type-id.cc:1001
data-output-interface.h
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition
log.h:191
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Definition
log-macros-enabled.h:229
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
stats
model
data-output-interface.cc
Generated on Fri Nov 8 2024 13:59:06 for ns-3 by
1.11.0