commit | cc50d986e3a43388a57bad6970c02117ec28a969 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Sat Mar 30 19:09:10 2013 -0700 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Sat Mar 30 19:09:10 2013 -0700 |
tree | c43a68256f89dfa4be9407dcf693f9d1a7c343fa | |
parent | 52ba2a32a54b88a1efc81255adb4ec4b9922ec21 [diff] [blame] |
model: Adding one more way to set Name of Interests and ContentObjects using reference to the Name object
diff --git a/model/ndn-interest.cc b/model/ndn-interest.cc index fb7e449..fc5b24f 100644 --- a/model/ndn-interest.cc +++ b/model/ndn-interest.cc
@@ -76,6 +76,12 @@ m_name = name; } +void +Interest::SetName (const Name &name) +{ + m_name = Create<Name> (name); +} + const Name& Interest::GetName () const {