tools: nfdc face create command
refs #3864
Change-Id: Icca589eceae0b78f68cda61e761dd4721ce54f9c
diff --git a/tools/nfdc/execute-command.hpp b/tools/nfdc/execute-command.hpp
index 644c70b..09f28d5 100644
--- a/tools/nfdc/execute-command.hpp
+++ b/tools/nfdc/execute-command.hpp
@@ -28,7 +28,12 @@
#include "command-arguments.hpp"
#include <ndn-cxx/face.hpp>
+#include <ndn-cxx/mgmt/nfd/command-options.hpp>
#include <ndn-cxx/mgmt/nfd/controller.hpp>
+#include <ndn-cxx/mgmt/nfd/control-command.hpp>
+#include <ndn-cxx/mgmt/nfd/control-parameters.hpp>
+#include <ndn-cxx/mgmt/nfd/control-response.hpp>
+#include <ndn-cxx/mgmt/nfd/status-dataset.hpp>
#include <ndn-cxx/security/key-chain.hpp>
namespace nfd {
@@ -37,6 +42,7 @@
using ndn::Face;
using ndn::KeyChain;
+using ndn::nfd::ControlParameters;
using ndn::nfd::Controller;
/** \brief context for command execution
@@ -44,8 +50,22 @@
class ExecuteContext
{
public:
- /** \brief handler for dataset retrieval failure
- * \param datasetName dataset name used in error message
+ /** \return timeout for each step
+ */
+ time::nanoseconds
+ getTimeout() const;
+
+ ndn::nfd::CommandOptions
+ makeCommandOptions() const;
+
+ /** \return handler for command execution failure
+ * \param commandName command name used in error message (present continuous tense)
+ */
+ Controller::CommandFailCallback
+ makeCommandFailureHandler(const std::string& commandName);
+
+ /** \return handler for dataset retrieval failure
+ * \param datasetName dataset name used in error message (noun phrase)
*/
Controller::DatasetFailCallback
makeDatasetFailureHandler(const std::string& datasetName);