A Discrete-Event Network Simulator
API
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 //----------------------------------------------
32 {
33  NS_LOG_FUNCTION (this);
34 }
36 {
37  NS_LOG_FUNCTION (this);
38 }
39 void
41 {
42  NS_LOG_FUNCTION (this);
43 
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
58 {
59  NS_LOG_FUNCTION (this);
60 
61  return m_filePrefix;
62 }
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:201
virtual void DoDispose(void)
Destructor implementation.
Definition: object.cc:338
virtual void DoDispose()
Destructor implementation.
std::string m_filePrefix
File prefix for the DataOutputInterface.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetFilePrefix(const std::string prefix)
Sets the DataOutputInterface prefix to the provided prefix.
std::string GetFilePrefix() const
Gets the file prefix of the DataOutputInterface.