5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
lena-lte-comparison/flow-monitor-output-stats.h
1// Copyright (c) 2020 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
2//
3// SPDX-License-Identifier: GPL-2.0-only
4
5#ifndef FLOW_MONITOR_OUTPUT_STATS_H
6#define FLOW_MONITOR_OUTPUT_STATS_H
7
8#include "ns3/flow-monitor-helper.h"
9#include "ns3/sqlite-output.h"
10
11namespace ns3
12{
13
23class FlowMonitorOutputStats
24{
25 public:
30
57 void SetDb(SQLiteOutput* db, const std::string& tableName);
58
65 void Save(const Ptr<FlowMonitor>& monitor,
66 FlowMonitorHelper& flowmonHelper,
67 const std::string& filename);
68
69 private:
70 static void DeleteWhere(SQLiteOutput* p, uint32_t seed, uint32_t run, const std::string& table);
71
72 SQLiteOutput* m_db;
73 std::string m_tableName;
74};
75
76} // namespace ns3
77
78#endif // FLOW_MONITOR_OUTPUT_STATS_H
void Save(const Ptr< FlowMonitor > &monitor, FlowMonitorHelper &flowmonHelper, const std::string &filename)
Store the flow monitor output in the database.
void SetDb(SQLiteOutput *db, const std::string &tableName)
Install the output database.
FlowMonitorOutputStats()
FlowMonitorOutputStats constructor.