/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | |
/** | |
* Copyright (C) 2014 Named Data Networking Project | |
* See COPYING for copyright and distribution information. | |
*/ | |
#include "strategy-choice-entry.hpp" | |
namespace nfd { | |
namespace strategy_choice { | |
Entry::Entry(const Name& prefix) | |
: m_prefix(prefix) | |
{ | |
} | |
void | |
Entry::setStrategy(shared_ptr<fw::Strategy> strategy) | |
{ | |
BOOST_ASSERT(static_cast<bool>(strategy)); | |
m_strategy = strategy; | |
} | |
} // namespace strategy_choice | |
} // namespace nfd |