[ndnSIM] puzzled about nameconponent~~~
alexander.afanasyev at ucla.edu
Sun Mar 17 04:59:39 PDT 2013
Sorry for the delayed reply. Can you tell me what is the way you're trying to construct names. The current interface in Name class is far from perfect and I would love to have suggestions on how to improve it.
Right now, one of the Name constructors takes a list of references to string as input parameter, but it most likely not going to work in your case (it works with GetSubComponents).
With header->GetName() there should not be a problem, since you can either assign the output to another Name object or construct a new name object using the return value of GetName.
On Mar 16, 2013, at 12:47 AM, "Minerva" <xuyakunkun at gmail.com> wrote:
> Hi Alex,
> The function "GetComponets()" in "name.cc" can convert the namecomponent structure to a list.
> I'm wondering if there is an inverse function that can convert the list to nameconponent structure as well as header->GetName.
> If so, would you please show me an example how to use it?
> Many thanks.
> Yakun Xu
> National Engineering Laboratory for Next Generation Internet Interconnection Devices
> Beijing Jiaotong University, China
> Email: 11111015 at bjtu.edu.cn or xuyakunkun at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM