read-echo: functions to read data from repo

Change-Id: I61a0b8bf254cd84c49def0f7ddda5ab026c689f4
diff --git a/ndn-handle/read-handle.hpp b/ndn-handle/read-handle.hpp
new file mode 100644
index 0000000..5af1fb3
--- /dev/null
+++ b/ndn-handle/read-handle.hpp
@@ -0,0 +1,39 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
+/**
+ * Copyright (C) 2014 Regents of the University of California.
+ * See COPYING for copyright and distribution information.
+ */
+
+#ifndef REPO_NDN_HANDLE_READ_HANDLE_HPP
+#define REPO_NDN_HANDLE_READ_HANDLE_HPP
+
+#include "base-handle.hpp"
+
+namespace repo {
+
+class ReadHandle : BaseHandle
+{
+
+public:
+  ReadHandle(Face* face, StorageHandle* storageHandle)
+  : BaseHandle(face, storageHandle)
+  {
+  }
+
+  virtual void
+  listen(const Name& prefix);
+
+private:
+  /**
+   * @brief Read the name from backend storage
+   */
+  void
+  onInterest(const Name& prefix, const Interest& interest);
+
+  void
+  onRegisterFailed(const Name& prefix, const std::string& reason);
+};
+
+} //namespace repo
+
+#endif // REPO_NDN_HANDLE_READ_HANDLE_HPP