execute-command.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_TOOLS_NFDC_EXECUTE_COMMAND_HPP
27 #define NFD_TOOLS_NFDC_EXECUTE_COMMAND_HPP
28 
29 #include "command-arguments.hpp"
30 #include <ndn-cxx/face.hpp>
31 #include <ndn-cxx/security/key-chain.hpp>
32 
33 namespace nfd {
34 namespace tools {
35 namespace nfdc {
36 
37 using ndn::Face;
38 using ndn::KeyChain;
39 
43 {
44  const std::string& noun;
45  const std::string& verb;
47 
48  Face& face;
49  KeyChain& keyChain;
51 };
52 
56 typedef std::function<int(ExecuteContext& ctx)> ExecuteCommand;
57 
58 } // namespace nfdc
59 } // namespace tools
60 } // namespace nfd
61 
62 #endif // NFD_TOOLS_NFDC_EXECUTE_COMMAND_HPP
context for command execution
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
Definition: algorithm.hpp:32
contains named command arguments
const CommandArguments & args
std::function< int(ExecuteContext &ctx)> ExecuteCommand
a function to execute a command