[Ns-developers] [ns-3] binding Packet/Tag/TraceContext
Mathieu Lacage
mathieu.lacage at sophia.inria.fr
Tue Jan 8 23:14:02 PST 2008
On Tue, 2008-01-08 at 13:51 +0000, Gustavo Carneiro wrote:
>
> OK, so for TraceContextElements I think we have a possible solution
> based on C++ overloading.
> For tags a similar solution can be used.
> For headers probably as well.
>
> Hm.. maybe NS-3 does not need API changes after all :-)
If the only thing you are concerned about is adding and removing c++
trace context elements, tags, and headers from python, then, yes, it
should work. However, if you want to make it possible to add python
tags/headers/TraceContextElements, then, I am afraid, we are going to
need to add Serialization/Deserialization methods, even for the C++
code.
>
> One thing that I'm sure I'll need is to have all possible tags inherit
> from a single common Tag base class. Same for Header and
> TraceContextElement. This is so that I can use gccxml introspection
> to discover all the possible classes for tags, tracing, and headers.
This is already the case in the current codebase.
Mathieu
More information about the Ns-developers
mailing list