26 #ifndef NFD_TOOLS_NFDC_COMMAND_PARSER_HPP
27 #define NFD_TOOLS_NFDC_COMMAND_PARSER_HPP
31 #include <type_traits>
64 class Error :
public std::invalid_argument
69 :
std::invalid_argument(what)
87 addAlias(
const std::string& noun,
const std::string& verb,
const std::string& verb2);
96 std::tuple<std::string, std::string, CommandArguments, ExecuteCommand>
97 parse(
const std::vector<std::string>& tokens,
ParseMode mode)
const;
100 typedef std::pair<std::string, std::string> CommandName;
111 typedef std::map<CommandName, shared_ptr<Command>> CommandContainer;
112 CommandContainer m_commands;
119 #endif // NFD_TOOLS_NFDC_COMMAND_PARSER_HPP
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...