Remove dependency on Selectors and refactor codebase.
Change-Id: Ic3024b76ba0eea61f790c91c36090b4aa68702a3
Refs: #4522
diff --git a/src/repo-command-parameter.hpp b/src/repo-command-parameter.hpp
index 1ad212f..6ce45f0 100644
--- a/src/repo-command-parameter.hpp
+++ b/src/repo-command-parameter.hpp
@@ -24,16 +24,14 @@
#include <ndn-cxx/encoding/encoding-buffer.hpp>
#include <ndn-cxx/encoding/block-helpers.hpp>
-#include <ndn-cxx/name.hpp>
-#include <ndn-cxx/selectors.hpp>
#include <ndn-cxx/mgmt/control-parameters.hpp>
+#include <ndn-cxx/name.hpp>
namespace repo {
using ndn::Name;
using ndn::Block;
using ndn::EncodingImpl;
-using ndn::Selectors;
using ndn::EncodingEstimator;
using ndn::EncodingBuffer;
using namespace ndn::time;
@@ -43,8 +41,6 @@
REPO_PARAMETER_START_BLOCK_ID,
REPO_PARAMETER_END_BLOCK_ID,
REPO_PARAMETER_PROCESS_ID,
- REPO_PARAMETER_MAX_INTEREST_NUM,
- REPO_PARAMETER_WATCH_TIME_OUT,
REPO_PARAMETER_INTEREST_LIFETIME,
REPO_PARAMETER_UBOUND
};
@@ -54,8 +50,6 @@
"StartBlockId",
"EndBlockId",
"ProcessId",
- "MaxInterestNum",
- "WatchTimeout",
"InterestLifetime"
};
@@ -104,20 +98,6 @@
return m_hasFields[REPO_PARAMETER_NAME];
}
- const Selectors&
- getSelectors() const
- {
- return m_selectors;
- }
-
- RepoCommandParameter&
- setSelectors(const Selectors& selectors);
-
- bool
- hasSelectors() const
- {
- return !m_selectors.empty();
- }
uint64_t
getStartBlockId() const
@@ -167,38 +147,6 @@
return m_hasFields[REPO_PARAMETER_PROCESS_ID];
}
- uint64_t
- getMaxInterestNum() const
- {
- assert(hasMaxInterestNum());
- return m_maxInterestNum;
- }
-
- RepoCommandParameter&
- setMaxInterestNum(uint64_t maxInterestNum);
-
- bool
- hasMaxInterestNum() const
- {
- return m_hasFields[REPO_PARAMETER_MAX_INTEREST_NUM];
- }
-
- milliseconds
- getWatchTimeout() const
- {
- assert(hasWatchTimeout());
- return m_watchTimeout;
- }
-
- RepoCommandParameter&
- setWatchTimeout(milliseconds watchTimeout);
-
- bool
- hasWatchTimeout() const
- {
- return m_hasFields[REPO_PARAMETER_WATCH_TIME_OUT];
- }
-
milliseconds
getInterestLifetime() const
{
@@ -233,12 +181,9 @@
private:
std::vector<bool> m_hasFields;
Name m_name;
- Selectors m_selectors;
uint64_t m_startBlockId;
uint64_t m_endBlockId;
uint64_t m_processId;
- uint64_t m_maxInterestNum;
- milliseconds m_watchTimeout;
milliseconds m_interestLifetime;
mutable Block m_wire;