commit | 9bdb3b293656ee28a4a50c86d3916c0119ff6454 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Thu Sep 12 12:42:13 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Thu Sep 12 12:42:13 2013 -0700 |
tree | 4a3eb935e340c9a2f5616f1e2806c893ba77655e | |
parent | 85db6d797f5028bc7d7c52b7bb6602d01e0ed02b [diff] [blame] |
Make Name::Component.getValue() return Blob& .
diff --git a/ndn-cpp/name.hpp b/ndn-cpp/name.hpp index 41811f5..7079233 100644 --- a/ndn-cpp/name.hpp +++ b/ndn-cpp/name.hpp
@@ -67,7 +67,9 @@ */ bool setFromEscapedString(const char *first, const char *last); - const std::vector<unsigned char>& getValue() const { return (*value_); } + const Blob& getValue() const { return value_; } + + void setValue(const Blob& value) { value_ = value; } /** * Set this component to the encoded segment number.