26 #ifndef NFD_TOOLS_NFDC_COMMAND_ARGUMENTS_HPP 27 #define NFD_TOOLS_NFDC_COMMAND_ARGUMENTS_HPP 32 #include <ndn-cxx/encoding/nfd-constants.hpp> 34 #include <boost/any.hpp> 35 #include <boost/logic/tribool.hpp> 41 using ndn::nfd::FacePersistency;
42 using ndn::nfd::RouteOrigin;
53 get(
const std::string& key,
const T& defaultValue = T())
const 56 return i == end() ? defaultValue : boost::any_cast<T>(i->second);
69 return boost::any_cast<T>(i->second);
78 auto value = getOptional<bool>(key);
82 return boost::logic::indeterminate;
90 #endif // NFD_TOOLS_NFDC_COMMAND_ARGUMENTS_HPP
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...