commit | e6063517da643ae5f2d5ce6e0afb4adf3a91c454 | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Mon Jul 01 15:11:28 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Mon Jul 01 15:11:28 2013 -0700 |
tree | 85ea307eb7f6a634ffbb199526fc6f5e0b999cfc | |
parent | 2fb4b1bd417d6d2eac0bda550d91972909d51270 [diff] [blame] |
Added to_uri
diff --git a/ndn-cpp/Name.hpp b/ndn-cpp/Name.hpp index 29e95cd..2d2744a 100644 --- a/ndn-cpp/Name.hpp +++ b/ndn-cpp/Name.hpp
@@ -53,6 +53,12 @@ return components_.size(); } + /** + * Encode this name as a URI. + * @return the encoded URI. + */ + std::string to_uri(); + private: std::vector<std::vector<unsigned char> > components_; };