commit | f5dbd270c1b946069f72f34900bd2d9b9c37ca86 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Thu Aug 08 16:49:55 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Thu Aug 08 16:49:55 2013 -0700 |
tree | dc3f21c5a1ab4229d1b83f837bcb7871fd65e9cf | |
parent | 46bd45ff9f24d1f98dad7a5d0d59660ad209c10a [diff] |
Added Data constructor with Name
diff --git a/ndn-cpp/data.hpp b/ndn-cpp/data.hpp index 7e954d2..f7fa747 100644 --- a/ndn-cpp/data.hpp +++ b/ndn-cpp/data.hpp
@@ -121,6 +121,15 @@ class Data { public: + Data() + { + } + + Data(const Name &name) + : name_(name) + { + } + ptr_lib::shared_ptr<std::vector<unsigned char> > wireEncode(WireFormat &wireFormat) const { return wireFormat.encodeData(*this);