contains named command arguments
More...
#include <tools/nfdc/command-arguments.hpp>
|
template<typename T > |
T | get (const std::string &key, const T &defaultValue=T()) const |
|
template<typename T > |
ndn::optional< T > | getOptional (const std::string &key) const |
|
boost::logic::tribool | getTribool (const std::string &key) const |
| get an optional boolean argument as tribool More...
|
|
contains named command arguments
Definition at line 46 of file command-arguments.hpp.
template<typename T >
T nfd::tools::nfdc::CommandArguments::get |
( |
const std::string & |
key, |
|
|
const T & |
defaultValue = T() |
|
) |
| const |
|
inline |
- Returns
- the argument value, or a default value if the argument is omitted on command line
Definition at line 53 of file command-arguments.hpp.
template<typename T >
ndn::optional<T> nfd::tools::nfdc::CommandArguments::getOptional |
( |
const std::string & |
key | ) |
const |
|
inline |
- Returns
- the argument value, or nullopt if the argument is omitted on command line
Definition at line 63 of file command-arguments.hpp.
boost::logic::tribool nfd::tools::nfdc::CommandArguments::getTribool |
( |
const std::string & |
key | ) |
const |
|
inline |
get an optional boolean argument as tribool
- Returns
- the argument value, or boost::logic::indeterminate if the argument is omitted on command line
Definition at line 76 of file command-arguments.hpp.
T std::map< K, T >::elements |
|
inherited |