table: mock Measurements table
refs #1259, #1197
Change-Id: Ie7cd2ff6fbbb413a77539eb9f1c5354405252cec
diff --git a/daemon/table/measurements-entry.hpp b/daemon/table/measurements-entry.hpp
new file mode 100644
index 0000000..c7145d7
--- /dev/null
+++ b/daemon/table/measurements-entry.hpp
@@ -0,0 +1,51 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
+/**
+ * Copyright (C) 2014 Named Data Networking Project
+ * See COPYING for copyright and distribution information.
+ */
+
+#ifndef NFD_TABLE_MEASUREMENTS_ENTRY_HPP
+#define NFD_TABLE_MEASUREMENTS_ENTRY_HPP
+
+#include "common.hpp"
+#include "strategy-info-host.hpp"
+#include "core/scheduler.hpp"
+
+namespace nfd {
+
+class Measurements;
+
+namespace measurements {
+
+/** \class Entry
+ * \brief represents a Measurements entry
+ */
+class Entry : public StrategyInfoHost, noncopyable
+{
+public:
+ explicit
+ Entry(const Name& name);
+
+ const Name&
+ getName() const;
+
+private:
+ Name m_name;
+
+private: // lifetime
+ time::Point m_expiry;
+ EventId m_cleanup;
+
+ friend class ::nfd::Measurements;
+};
+
+inline const Name&
+Entry::getName() const
+{
+ return m_name;
+}
+
+} // namespace measurements
+} // namespace nfd
+
+#endif // NFD_TABLE_MEASUREMENTS_ENTRY_HPP