A Discrete-Event Network Simulator
API
 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 //----------------------------------------------
33 {
34  NS_LOG_FUNCTION (this);
35 }
37 {
38  NS_LOG_FUNCTION (this);
39 }
40 void
42 {
43  NS_LOG_FUNCTION (this);
44 
46  // end DataOutputInterface::DoDispose
47 }
48 
49 void
50 DataOutputInterface::SetFilePrefix (const std::string prefix)
51 {
52  NS_LOG_FUNCTION (this << prefix);
53 
54  m_filePrefix = prefix;
55 }
56 
57 std::string
59 {
60  NS_LOG_FUNCTION (this);
61 
62  return m_filePrefix;
63 }
#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:170
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition: object.cc:335
virtual void DoDispose()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
std::string m_filePrefix
File prefix for the DataOutputInterface.
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.