3589
|
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 |
#ifndef __DATA_OUTPUT_INTERFACE_H__
|
|
22 |
#define __DATA_OUTPUT_INTERFACE_H__
|
|
23 |
|
|
24 |
#include "ns3/object.h"
|
|
25 |
#include "ns3/nstime.h"
|
|
26 |
|
|
27 |
namespace ns3 {
|
|
28 |
|
|
29 |
class DataCollector;
|
|
30 |
|
|
31 |
//------------------------------------------------------------
|
|
32 |
//--------------------------------------------
|
|
33 |
class DataOutputInterface : public Object {
|
|
34 |
public:
|
|
35 |
DataOutputInterface();
|
|
36 |
virtual ~DataOutputInterface();
|
|
37 |
|
|
38 |
virtual void Output(DataCollector &dc) = 0;
|
|
39 |
|
|
40 |
protected:
|
|
41 |
virtual void DoDispose();
|
|
42 |
|
|
43 |
// end class DataOutputInterface
|
|
44 |
};
|
|
45 |
|
|
46 |
class DataOutputCallback {
|
|
47 |
public:
|
|
48 |
virtual ~DataOutputCallback() {}
|
|
49 |
|
|
50 |
virtual void OutputSingleton(std::string key,
|
|
51 |
std::string variable,
|
|
52 |
int val) = 0;
|
|
53 |
|
|
54 |
virtual void OutputSingleton(std::string key,
|
|
55 |
std::string variable,
|
|
56 |
uint32_t val) = 0;
|
|
57 |
|
|
58 |
virtual void OutputSingleton(std::string key,
|
|
59 |
std::string variable,
|
|
60 |
double val) = 0;
|
|
61 |
|
|
62 |
virtual void OutputSingleton(std::string key,
|
|
63 |
std::string variable,
|
|
64 |
std::string val) = 0;
|
|
65 |
|
|
66 |
virtual void OutputSingleton(std::string key,
|
|
67 |
std::string variable,
|
|
68 |
Time val) = 0;
|
|
69 |
// end class DataOutputCallback
|
|
70 |
};
|
|
71 |
|
|
72 |
// end namespace ns3
|
|
73 |
};
|
|
74 |
|
|
75 |
|
|
76 |
#endif // __DATA_OUTPUT_INTERFACE_H__
|