tools: nfdc route add command
This commit also simplifies 'nfdc face destroy' and its test case.
'nfdc register' is deprecated in favor of 'nfdc route add'.
refs #3866
Change-Id: I1de5cc0bc956d57b0793da920c1e87b3580a3297
diff --git a/tools/nfdc/find-face.cpp b/tools/nfdc/find-face.cpp
index 520ea92..d877e81 100644
--- a/tools/nfdc/find-face.cpp
+++ b/tools/nfdc/find-face.cpp
@@ -55,6 +55,18 @@
}
FindFace::Code
+FindFace::execute(const boost::any& faceIdOrUri)
+{
+ const uint64_t* faceId = boost::any_cast<uint64_t>(&faceIdOrUri);
+ if (faceId != nullptr) {
+ return this->execute(*faceId);
+ }
+ else {
+ return this->execute(boost::any_cast<FaceUri>(faceIdOrUri));
+ }
+}
+
+FindFace::Code
FindFace::execute(const FaceQueryFilter& filter, bool allowMulti)
{
BOOST_ASSERT(m_res == Code::NOT_STARTED);