26 #ifndef NFD_TOOLS_NFDC_FACE_HELPERS_HPP
27 #define NFD_TOOLS_NFDC_FACE_HELPERS_HPP
32 #include <ndn-cxx/mgmt/nfd/face-query-filter.hpp>
33 #include <ndn-cxx/mgmt/nfd/face-status.hpp>
34 #include <ndn-cxx/net/face-uri.hpp>
41 using ndn::nfd::FaceQueryFilter;
42 using ndn::nfd::FaceStatus;
72 execute(
const FaceUri& faceUri,
bool allowMulti =
false);
86 execute(
const std::any& faceIdOrUri,
bool allowMulti =
false);
92 execute(
const FaceQueryFilter& filter,
bool allowMulti =
false);
96 const std::vector<FaceStatus>&
122 return m_errorReason;
131 std::optional<FaceUri>
132 canonize(
const std::string& fieldName,
const FaceUri& uri);
143 FaceQueryFilter m_filter;
145 std::vector<FaceStatus> m_results;
146 std::string m_errorReason;
153 std::pair<std::optional<FaceUri>, std::string>
154 canonize(ExecuteContext& ctx,
const FaceUri& uri);
163 std::pair<FindFace::Code, std::string>
165 const std::string& error,
166 const std::string& field =
"");
Context for command execution.