Small extension of CcnxGlobalRoutingHelper. Removing some old examples
diff --git a/helper/ccnx-global-routing-helper.cc b/helper/ccnx-global-routing-helper.cc
index 7adbc84..908937e 100644
--- a/helper/ccnx-global-routing-helper.cc
+++ b/helper/ccnx-global-routing-helper.cc
@@ -189,6 +189,17 @@
}
void
+CcnxGlobalRoutingHelper::AddOrigins (const std::string &prefix, const NodeContainer &nodes)
+{
+ for (NodeContainer::Iterator node = nodes.Begin ();
+ node != nodes.End ();
+ node++)
+ {
+ AddOrigin (prefix, *node);
+ }
+}
+
+void
CcnxGlobalRoutingHelper::AddOrigin (const std::string &prefix, const std::string &nodeName)
{
Ptr<Node> node = Names::Find<Node> (nodeName);
diff --git a/helper/ccnx-global-routing-helper.h b/helper/ccnx-global-routing-helper.h
index 92c10c6..1bf4b59 100644
--- a/helper/ccnx-global-routing-helper.h
+++ b/helper/ccnx-global-routing-helper.h
@@ -72,6 +72,14 @@
AddOrigin (const std::string &prefix, Ptr<Node> node);
/**
+ * @brief Add `prefix' as origin on all `nodes'
+ * @param prefix Prefix that is originated by nodes
+ * @param nodes NodeContainer
+ */
+ void
+ AddOrigins (const std::string &prefix, const NodeContainer &nodes);
+
+ /**
* @brief Add `prefix' as origin on node `nodeName'
* @param prefix Prefix that is originated by node, e.g., node is a producer for this prefix
* @param nodeName Name of the node that is associated with Ptr<Node> using ns3::Names