Junxiao Shi | bb5105f | 2014-03-03 12:06:45 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2014 Named Data Networking Project |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #include "strategy-choice-entry.hpp" |
| 8 | |
| 9 | namespace nfd { |
| 10 | namespace strategy_choice { |
| 11 | |
| 12 | Entry::Entry(const Name& prefix) |
| 13 | : m_prefix(prefix) |
| 14 | { |
| 15 | } |
| 16 | |
| 17 | void |
| 18 | Entry::setStrategy(shared_ptr<fw::Strategy> strategy) |
| 19 | { |
| 20 | BOOST_ASSERT(static_cast<bool>(strategy)); |
| 21 | m_strategy = strategy; |
| 22 | } |
| 23 | |
| 24 | } // namespace strategy_choice |
| 25 | } // namespace nfd |