Added Interest constructor with all arguments
diff --git a/ndn-cpp/Interest.hpp b/ndn-cpp/Interest.hpp
index 64746bf..24ef36e 100644
--- a/ndn-cpp/Interest.hpp
+++ b/ndn-cpp/Interest.hpp
@@ -124,11 +124,22 @@
}
Interest(const Name &name)
+ : name_(name)
{
name_ = name;
construct();
}
+ Interest(const Name &name, int minSuffixComponents, int maxSuffixComponents,
+ const PublisherPublicKeyDigest &publisherPublicKeyDigest, const Exclude &exclude, int childSelector, int answerOriginKind,
+ int scope, double interestLifetimeMilliseconds, const std::vector<unsigned char> &nonce)
+ : name_(name), minSuffixComponents_(minSuffixComponents), maxSuffixComponents_(maxSuffixComponents),
+ publisherPublicKeyDigest_(publisherPublicKeyDigest), exclude_(exclude), childSelector_(childSelector),
+ answerOriginKind_(answerOriginKind), scope_(scope), interestLifetimeMilliseconds_(interestLifetimeMilliseconds),
+ nonce_(nonce)
+ {
+ }
+
ptr_lib::shared_ptr<std::vector<unsigned char> > encode(WireFormat &wireFormat) const
{
return wireFormat.encodeInterest(*this);