table: MeasurementsAccessor for strategy
refs #1276
Change-Id: Idec8f615c726f51612236a55a7532fabeb81a32d
diff --git a/daemon/fw/forwarder.hpp b/daemon/fw/forwarder.hpp
index ae9fb6a..6da99c7 100644
--- a/daemon/fw/forwarder.hpp
+++ b/daemon/fw/forwarder.hpp
@@ -13,6 +13,7 @@
#include "table/fib.hpp"
#include "table/pit.hpp"
#include "table/cs.hpp"
+#include "table/measurements.hpp"
#include "strategy.hpp"
namespace nfd {
@@ -49,6 +50,9 @@
Cs&
getCs();
+
+ Measurements&
+ getMeasurements();
shared_ptr<Face>
getFace(FaceId id);
@@ -117,9 +121,10 @@
FaceId m_lastFaceId;
std::map<FaceId, shared_ptr<Face> > m_faces;
- Fib m_fib;
- Pit m_pit;
- Cs m_cs;
+ Fib m_fib;
+ Pit m_pit;
+ Cs m_cs;
+ Measurements m_measurements;
/// the active strategy (only one strategy in mock)
shared_ptr<fw::Strategy> m_strategy;
@@ -147,6 +152,12 @@
return m_cs;
}
+inline Measurements&
+Forwarder::getMeasurements()
+{
+ return m_measurements;
+}
+
} // namespace nfd
#endif // NFD_FW_FORWARDER_HPP