table: MeasurementsAccessor uses StrategyChoice
This commit also deletes fib::Entry::set/getStrategy attribute.
refs #1276
Change-Id: I57dfe842a8024e0ad9908ba8a9c415d5f4ac1bbe
diff --git a/daemon/table/strategy-choice.cpp b/daemon/table/strategy-choice.cpp
index 9e5cb37..c24a5b0 100644
--- a/daemon/table/strategy-choice.cpp
+++ b/daemon/table/strategy-choice.cpp
@@ -7,6 +7,7 @@
#include "strategy-choice.hpp"
#include "fw/strategy.hpp"
#include "pit-entry.hpp"
+#include "measurements-entry.hpp"
namespace nfd {
@@ -137,6 +138,12 @@
return this->findEffectiveStrategy(pitEntry.getName());
}
+Strategy&
+StrategyChoice::findEffectiveStrategy(const measurements::Entry& measurementsEntry) const
+{
+ return this->findEffectiveStrategy(measurementsEntry.getName());
+}
+
shared_ptr<fw::Strategy>
StrategyChoice::getStrategy(const Name& strategyName)
{