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"
35 
36 #include "core/config-file.hpp"
37 
38 namespace nfd {
39 
47 {
48 public:
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
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
represents the Strategy Choice table
Copyright (c) 2014-2016, Regents of the University of California, Arizona Board of Regents...
represents the FIB
Definition: fib.hpp:44
stores a collection of producer region names
represents the Measurements table
represents the Interest Table
Definition: pit.hpp:48
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
boost::property_tree::ptree ConfigSection
represents the ContentStore
Definition: cs.hpp:65
Provides parsing for tables configuration file section.
void setConfigFile(ConfigFile &configFile)
TablesConfigSection(Cs &cs, Pit &pit, Fib &fib, StrategyChoice &strategyChoice, Measurements &measurements, NetworkRegionTable &networkRegionTable)