NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
tables-config-section.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_MGMT_TABLES_CONFIG_SECTION_HPP
27
#define NFD_MGMT_TABLES_CONFIG_SECTION_HPP
28
29
#include "
table/fib.hpp
"
30
#include "
table/pit.hpp
"
31
#include "
table/cs.hpp
"
32
#include "
table/measurements.hpp
"
33
#include "
table/network-region-table.hpp
"
34
#include "
table/strategy-choice.hpp
"
35
36
#include "
core/config-file.hpp
"
37
38
namespace
nfd
{
39
46
class
TablesConfigSection
47
{
48
public
:
49
TablesConfigSection
(
Cs
& cs,
50
Pit
& pit,
51
Fib
& fib,
52
StrategyChoice
& strategyChoice,
53
Measurements
& measurements,
54
NetworkRegionTable
& networkRegionTable);
55
56
void
57
setConfigFile
(
ConfigFile
& configFile);
58
59
void
60
ensureTablesAreConfigured
();
61
62
private
:
63
64
void
65
processConfig(
const
ConfigSection
& configSection,
66
bool
isDryRun,
67
const
std::string& filename);
68
69
void
70
processStrategyChoiceSection(
const
ConfigSection
& configSection,
71
bool
isDryRun);
72
73
void
74
processNetworkRegionSection(
const
ConfigSection
& configSection,
75
bool
isDryRun);
76
77
private
:
78
Cs
& m_cs;
79
// Pit& m_pit;
80
// Fib& m_fib;
81
StrategyChoice
& m_strategyChoice;
82
// Measurements& m_measurements;
83
NetworkRegionTable
& m_networkRegionTable;
84
85
bool
m_areTablesConfigured;
86
87
private
:
88
89
static
const
size_t
DEFAULT_CS_MAX_PACKETS;
90
};
91
92
}
// namespace nfd
93
94
#endif // NFD_MGMT_TABLES_CONFIG_SECTION_HPP
nfd::TablesConfigSection::ensureTablesAreConfigured
void ensureTablesAreConfigured()
Definition:
tables-config-section.cpp:64
nfd::StrategyChoice
represents the Strategy Choice table
Definition:
strategy-choice.hpp:45
cs.hpp
Copyright (c) 2014-2016, Regents of the University of California, Arizona Board of Regents...
nfd::ConfigFile
Definition:
config-file.hpp:48
nfd::Fib
represents the FIB
Definition:
fib.hpp:44
fib.hpp
nfd::NetworkRegionTable
stores a collection of producer region names
Definition:
network-region-table.hpp:40
nfd::Measurements
represents the Measurements table
Definition:
measurements.hpp:75
config-file.hpp
nfd::Pit
represents the Interest Table
Definition:
pit.hpp:48
strategy-choice.hpp
pit.hpp
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::ConfigSection
boost::property_tree::ptree ConfigSection
Definition:
ndn-l3-protocol.hpp:38
nfd::cs::Cs
represents the ContentStore
Definition:
cs.hpp:65
nfd::TablesConfigSection
Provides parsing for tables configuration file section.
Definition:
tables-config-section.hpp:46
network-region-table.hpp
measurements.hpp
nfd::TablesConfigSection::setConfigFile
void setConfigFile(ConfigFile &configFile)
Definition:
tables-config-section.cpp:56
nfd::TablesConfigSection::TablesConfigSection
TablesConfigSection(Cs &cs, Pit &pit, Fib &fib, StrategyChoice &strategyChoice, Measurements &measurements, NetworkRegionTable &networkRegionTable)
Definition:
tables-config-section.cpp:38
ndnSIM
NFD
daemon
mgmt
tables-config-section.hpp
Generated on Sat Nov 12 2016 16:02:54 for ndnSIM by
1.8.12