26 #ifndef NFD_TOOLS_NFDC_COMMAND_DEFINITION_HPP
27 #define NFD_TOOLS_NFDC_COMMAND_DEFINITION_HPP
118 class Error :
public std::invalid_argument
123 :
std::invalid_argument(what)
158 m_synopsis = synopsis;
174 const std::string& metavar =
"");
182 parse(
const std::vector<std::string>& tokens,
size_t start = 0)
const;
186 parseValue(
ArgValueType valueType,
const std::string& token)
const;
192 std::string m_synopsis;
201 typedef std::map<std::string, Arg> ArgMap;
203 std::set<std::string> m_requiredArgs;
204 std::vector<std::string> m_positionalArgs;
211 #endif // NFD_TOOLS_NFDC_COMMAND_DEFINITION_HPP
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...