nfd::tools::nfdc::ExecuteContext Class Reference

context for command execution More...

#include <tools/nfdc/execute-command.hpp>

+ Collaboration diagram for nfd::tools::nfdc::ExecuteContext:

Public Member Functions

time::nanoseconds getTimeout () const
 
Controller::CommandFailCallback makeCommandFailureHandler (const std::string &commandName)
 
ndn::nfd::CommandOptions makeCommandOptions () const
 
Controller::DatasetFailCallback makeDatasetFailureHandler (const std::string &datasetName)
 

Public Attributes

const CommandArgumentsargs
 
Controller & controller
 
std::ostream & err
 error stream More...
 
int exitCode
 program exit code More...
 
Face & face
 
KeyChain & keyChain
 
const std::string & noun
 
std::ostream & out
 output stream More...
 
const std::string & verb
 

Detailed Description

context for command execution

Definition at line 51 of file execute-command.hpp.

Member Function Documentation

time::nanoseconds nfd::tools::nfdc::ExecuteContext::getTimeout ( ) const
Returns
timeout for each step

Definition at line 33 of file execute-command.cpp.

Controller::CommandFailCallback nfd::tools::nfdc::ExecuteContext::makeCommandFailureHandler ( const std::string &  commandName)
Returns
handler for command execution failure
Parameters
commandNamecommand name used in error message (present continuous tense)

Definition at line 46 of file execute-command.cpp.

ndn::nfd::CommandOptions nfd::tools::nfdc::ExecuteContext::makeCommandOptions ( ) const

Definition at line 39 of file execute-command.cpp.

Controller::DatasetFailCallback nfd::tools::nfdc::ExecuteContext::makeDatasetFailureHandler ( const std::string &  datasetName)
Returns
handler for dataset retrieval failure
Parameters
datasetNamedataset name used in error message (noun phrase)

Definition at line 55 of file execute-command.cpp.

Member Data Documentation

const CommandArguments& nfd::tools::nfdc::ExecuteContext::args

Definition at line 77 of file execute-command.hpp.

Controller& nfd::tools::nfdc::ExecuteContext::controller
Todo:
validator

Definition at line 86 of file execute-command.hpp.

std::ostream& nfd::tools::nfdc::ExecuteContext::err

error stream

Definition at line 81 of file execute-command.hpp.

int nfd::tools::nfdc::ExecuteContext::exitCode

program exit code

Definition at line 79 of file execute-command.hpp.

Face& nfd::tools::nfdc::ExecuteContext::face

Definition at line 83 of file execute-command.hpp.

KeyChain& nfd::tools::nfdc::ExecuteContext::keyChain

Definition at line 84 of file execute-command.hpp.

const std::string& nfd::tools::nfdc::ExecuteContext::noun

Definition at line 75 of file execute-command.hpp.

std::ostream& nfd::tools::nfdc::ExecuteContext::out

output stream

Definition at line 80 of file execute-command.hpp.

const std::string& nfd::tools::nfdc::ExecuteContext::verb

Definition at line 76 of file execute-command.hpp.