A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
data-output-interface.cc
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2008 Drexel University
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Joe Kopena (tjkopena@cs.drexel.edu)
19
*/
20
21
#include "ns3/log.h"
22
23
#include "
data-output-interface.h
"
24
25
using namespace
ns3
;
26
27
NS_LOG_COMPONENT_DEFINE
(
"DataOutputInterface"
);
28
29
//--------------------------------------------------------------
30
//----------------------------------------------
31
DataOutputInterface::DataOutputInterface
()
32
{
33
NS_LOG_FUNCTION
(
this
);
34
}
35
DataOutputInterface::~DataOutputInterface
()
36
{
37
NS_LOG_FUNCTION
(
this
);
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
}
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:213
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition:
log.h:201
ns3::Object::DoDispose
virtual void DoDispose(void)
Destructor implementation.
Definition:
object.cc:339
ns3::DataOutputInterface::DoDispose
virtual void DoDispose()
Destructor implementation.
Definition:
data-output-interface.cc:40
ns3::DataOutputInterface::m_filePrefix
std::string m_filePrefix
File prefix for the DataOutputInterface.
Definition:
data-output-interface.h:64
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::DataOutputInterface::~DataOutputInterface
virtual ~DataOutputInterface()
Definition:
data-output-interface.cc:35
data-output-interface.h
ns3::DataOutputInterface::DataOutputInterface
DataOutputInterface()
Definition:
data-output-interface.cc:31
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::GetFilePrefix
std::string GetFilePrefix() const
Gets the file prefix of the DataOutputInterface.
Definition:
data-output-interface.cc:57
src
stats
model
data-output-interface.cc
Generated on Wed May 13 2015 14:59:31 for ns-3 by
1.8.9.1