26 #ifndef NFD_TOOLS_NFDC_COMMAND_ARGUMENTS_HPP
27 #define NFD_TOOLS_NFDC_COMMAND_ARGUMENTS_HPP
32 #include <ndn-cxx/encoding/nfd-constants.hpp>
33 #include <ndn-cxx/util/any.hpp>
35 #include <boost/logic/tribool.hpp>
41 using ndn::nfd::FacePersistency;
42 using ndn::nfd::RouteOrigin;
56 return i == end() ? nullopt : ndn::make_optional(ndn::any_cast<T>(i->second));
63 get(
const std::string& key,
const T& defaultValue = T())
const
65 return getOptional<T>(key).value_or(defaultValue);
74 auto value = getOptional<bool>(key);
75 return value ? boost::logic::tribool(*value) : boost::logic::indeterminate;
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents,...