-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaggregator-csv.h
52 lines (42 loc) · 1.49 KB
/
aggregator-csv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2011 Bucknell University
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Author: L. Felipe Perrone ([email protected])
*/
#ifndef AGGREGATOR_CSV_H
#define AGGREGATOR_CSV_H
#include "ns3/object.h"
#include <vector>
#include <string>
namespace ns3 {
/**
* This aggregator produces a text file as output. The values
* logged into this object will appear separated by commas in the
* output file (i.e. as in a CSV file).
**/
class AggregatorCSV : public AggregatorFile
{
public:
static TypeId GetTypeId ();
AggregatorCSV ();
virtual ~AggregatorCSV () {};
virtual void IntToOutput(std::string s, Time t, int v);
virtual void DoubleToOutput(std::string s, Time t, double v);
virtual void StringIntToOutput(std::string s, Time t, std::string v);
}; // class AggregatorCSV
} // namespace ns3
#endif // AGGREGATOR_H