name: Implementing ``operator>>`` method to constuct Name from standard input

Change-Id: I9e7fef532c58fb1cf16fd12cedb0e9fde478e0f4
diff --git a/src/name.hpp b/src/name.hpp
index 523b200..1d32943 100644
--- a/src/name.hpp
+++ b/src/name.hpp
@@ -505,8 +505,8 @@
   mutable Block m_nameBlock;
 };
 
-std::ostream &
-operator << (std::ostream &os, const Name &name);
+std::ostream&
+operator<<(std::ostream& os, const Name& name);
 
 inline std::string 
 Name::toUri() const
@@ -516,6 +516,16 @@
   return os.str();
 }
 
+inline std::istream&
+operator>>(std::istream& is, Name& name)
+{
+  std::string inputString;
+  is >> inputString;
+  name.set(inputString);
+
+  return is;
+}
+
 template<bool T>
 inline size_t
 Name::wireEncode(EncodingImpl<T>& blk) const