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"
34 
35 #include "core/config-file.hpp"
36 
37 namespace nfd {
38 
40 {
41 public:
42  TablesConfigSection(Cs& cs,
43  Pit& pit,
44  Fib& fib,
45  StrategyChoice& strategyChoice,
46  Measurements& measurements);
47 
48  void
49  setConfigFile(ConfigFile& configFile);
50 
51  void
53 
54 private:
55 
56  void
57  onConfig(const ConfigSection& configSection,
58  bool isDryRun,
59  const std::string& filename);
60 
61  void
62  processSectionStrategyChoice(const ConfigSection& configSection,
63  bool isDryRun);
64 
65 private:
66  Cs& m_cs;
67  // Pit& m_pit;
68  // Fib& m_fib;
69  StrategyChoice& m_strategyChoice;
70  // Measurements& m_measurements;
71 
72  bool m_areTablesConfigured;
73 
74 private:
75 
76  static const size_t DEFAULT_CS_MAX_PACKETS;
77 };
78 
79 } // namespace nfd
80 
81 #endif // NFD_MGMT_TABLES_CONFIG_SECTION_HPP
TablesConfigSection(Cs &cs, Pit &pit, Fib &fib, StrategyChoice &strategyChoice, Measurements &measurements)
represents the Strategy Choice table
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
represents the FIB
Definition: fib.hpp:44
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:38
boost::property_tree::ptree ConfigSection
void setConfigFile(ConfigFile &configFile)