Added to_uri
diff --git a/ndn-cpp/Name.cpp b/ndn-cpp/Name.cpp
index 8caa59d..995746c 100644
--- a/ndn-cpp/Name.cpp
+++ b/ndn-cpp/Name.cpp
@@ -4,6 +4,7 @@
  * BSD license, See the LICENSE file for more information.
  */
 
+#include <sstream>
 #include "Name.hpp"
 
 using namespace std;
@@ -14,4 +15,17 @@
 {
 }
   
+std::string Name::to_uri()
+{
+  // TODO: implement fully.
+  ostringstream output;
+  for (int i = 0; i < components_.size(); ++i) {
+    output << "/";
+    for (int j = 0; j < components_[i].size(); ++j)
+      output << components_[i][j];
+  }
+  
+  return output.str();
+}
+
 }