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/logic/tribool.hpp> 40 using ndn::nfd::FacePersistency;
41 using ndn::nfd::RouteOrigin;
55 return i == end() ? nullopt : ndn::make_optional(ndn::any_cast<T>(i->second));
62 get(
const std::string& key,
const T& defaultValue = T())
const 64 return getOptional<T>(key).value_or(defaultValue);
73 auto value = getOptional<bool>(key);
74 return value ? boost::logic::tribool(*value) : boost::logic::indeterminate;
82 #endif // NFD_TOOLS_NFDC_COMMAND_ARGUMENTS_HPP
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...