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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
//----------------------------------------------
32
DataOutputInterface::DataOutputInterface
()
33
{
34
NS_LOG_FUNCTION_NOARGS
();
35
}
36
DataOutputInterface::~DataOutputInterface
()
37
{
38
NS_LOG_FUNCTION_NOARGS
();
39
}
40
void
41
DataOutputInterface::DoDispose
()
42
{
43
NS_LOG_FUNCTION_NOARGS
();
44
45
Object::DoDispose
();
46
// end DataOutputInterface::DoDispose
47
}
48
49
void
50
DataOutputInterface::SetFilePrefix
(
const
std::string prefix)
51
{
52
m_filePrefix
= prefix;
53
}
54
55
std::string
56
DataOutputInterface::GetFilePrefix
()
const
57
{
58
return
m_filePrefix
;
59
}
ns3::NS_LOG_COMPONENT_DEFINE
NS_LOG_COMPONENT_DEFINE("GrantedTimeWindowMpiInterface")
ns3::Object::DoDispose
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition:
object.cc:336
NS_LOG_FUNCTION_NOARGS
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
Definition:
log.h:309
ns3::DataOutputInterface::DoDispose
virtual void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition:
data-output-interface.cc:41
ns3::DataOutputInterface::m_filePrefix
std::string m_filePrefix
File prefix for the DataOutputInterface.
Definition:
data-output-interface.h:64
ns3::DataOutputInterface::~DataOutputInterface
virtual ~DataOutputInterface()
Definition:
data-output-interface.cc:36
data-output-interface.h
ns3::DataOutputInterface::DataOutputInterface
DataOutputInterface()
Definition:
data-output-interface.cc:32
ns3::DataOutputInterface::SetFilePrefix
void SetFilePrefix(const std::string prefix)
Sets the DataOutputInterface prefix to the provided prefix.
Definition:
data-output-interface.cc:50
ns3::DataOutputInterface::GetFilePrefix
std::string GetFilePrefix() const
Gets the file prefix of the DataOutputInterface.
Definition:
data-output-interface.cc:56
src
stats
model
data-output-interface.cc
Generated on Sat Apr 19 2014 14:07:08 for ns-3 by
1.8.6