26 #ifndef NFD_TOOLS_NFDC_FACE_HELPERS_HPP
27 #define NFD_TOOLS_NFDC_FACE_HELPERS_HPP
33 using ndn::nfd::FaceQueryFilter;
34 using ndn::nfd::FaceStatus;
64 execute(
const FaceUri& faceUri,
bool allowMulti =
false);
78 execute(
const std::any& faceIdOrUri,
bool allowMulti =
false);
84 execute(
const FaceQueryFilter& filter,
bool allowMulti =
false);
88 const std::vector<FaceStatus>&
114 return m_errorReason;
123 std::optional<FaceUri>
124 canonize(
const std::string& fieldName,
const FaceUri& uri);
135 FaceQueryFilter m_filter;
137 std::vector<FaceStatus> m_results;
138 std::string m_errorReason;
145 std::pair<std::optional<FaceUri>, std::string>
146 canonize(ExecuteContext& ctx,
const FaceUri& uri);
155 std::pair<FindFace::Code, std::string>
157 const std::string& error,
158 const std::string& field =
"");
Context for command execution.