all: Replacing deprecated NameComponents class with Name
NameComponents is kept for backwards compatibility as typedef to Name
refs #29
diff --git a/examples/custom-apps/custom-app.cc b/examples/custom-apps/custom-app.cc
index 14c564e..86108ac 100644
--- a/examples/custom-apps/custom-app.cc
+++ b/examples/custom-apps/custom-app.cc
@@ -58,7 +58,7 @@
ndn::App::StartApplication ();
// Create a name components object for name ``/prefix/sub``
- Ptr<ndn::NameComponents> prefix = Create<ndn::NameComponents> (); // now prefix contains ``/``
+ Ptr<ndn::Name> prefix = Create<ndn::Name> (); // now prefix contains ``/``
prefix->Add ("prefix"); // now prefix contains ``/prefix``
prefix->Add ("sub"); // now prefix contains ``/prefix/sub``
@@ -91,7 +91,7 @@
// Sending one Interest packet out //
/////////////////////////////////////
- Ptr<ndn::NameComponents> prefix = Create<ndn::NameComponents> ("/prefix/sub"); // another way to create name
+ Ptr<ndn::Name> prefix = Create<ndn::Name> ("/prefix/sub"); // another way to create name
// Create and configure ndn::InterestHeader
ndn::InterestHeader interestHeader;
@@ -125,7 +125,7 @@
// Note that Interests send out by the app will not be sent back to the app !
ndn::ContentObjectHeader data;
- data.SetName (Create<ndn::NameComponents> (interest->GetName ())); // data will have the same name as Interests
+ data.SetName (Create<ndn::Name> (interest->GetName ())); // data will have the same name as Interests
ndn::ContentObjectTail trailer; // doesn't require any configuration