nfd::tools::nfdc::FaceIdFetcher Class Reference

#include <face-id-fetcher.hpp>

Collaboration diagram for nfd::tools::nfdc::FaceIdFetcher:

Public Types

typedef std::function< void(uint32_t)> SuccessCallback
 
typedef std::function< void(const std::string &)> FailureCallback
 

Static Public Member Functions

static void start (ndn::Face &face, ndn::nfd::Controller &controller, const std::string &input, bool allowCreate, const SuccessCallback &onSucceed, const FailureCallback &onFail)
 obtain FaceId from input More...
 

Detailed Description

Definition at line 41 of file face-id-fetcher.hpp.

Member Typedef Documentation

typedef std::function<void(const std::string&)> nfd::tools::nfdc::FaceIdFetcher::FailureCallback

Definition at line 45 of file face-id-fetcher.hpp.

typedef std::function<void(uint32_t)> nfd::tools::nfdc::FaceIdFetcher::SuccessCallback

Definition at line 44 of file face-id-fetcher.hpp.

Member Function Documentation

void nfd::tools::nfdc::FaceIdFetcher::start ( ndn::Face &  face,
ndn::nfd::Controller &  controller,
const std::string &  input,
bool  allowCreate,
const SuccessCallback onSucceed,
const FailureCallback onFail 
)
static

obtain FaceId from input

Parameters
faceReference to the Face that should be used to fetch data
controllerReference to the controller that should be used to sign the Interest
inputUser input, either FaceId or FaceUri
allowCreateWhether creating face is allowed
onSucceedCallback to be fired when faceId is obtained
onFailCallback to be fired when an error occurs

Definition at line 53 of file face-id-fetcher.cpp.