[ndnSIM] GetTypeId() for user defined object.

Anil Jangam anilj.mailing at gmail.com
Fri Apr 24 00:21:04 PDT 2015


In my ndn application, which is a composition of other user defined
objects, I am trying to write "TypeId GetTypeId(void)" function. I checked
some existing examples, and found that most of them are composition of NS
and basic data type objects (e.g. Name, Time, uint32_t etc).

I don't quite understand in my case how do I write the GetTypeId function
and how to use the AddAttribute() for user defined objects. For instance
for object of type Name, there is MakeNameAccessor() and MakeNameChecker()
functions, and these are used in AddAttribute.

Do I have to define these Accessor and Checker functions for my user
defined objects?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150424/0246af0c/attachment.html>

More information about the ndnSIM mailing list