[Ns-bugs] [Bug 622] [PATCH] Friendly names for pcap traces
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Fri Oct 23 07:27:56 PDT 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=622
--- Comment #5 from Faker Moatamri <faker.moatamri at sophia.inria.fr> 2009-10-23 10:27:56 EDT ---
I think that the best way to do is to centralize the code and to delegate the
name creation to PcapWriter i.e. something like this:
Ptr<PcapWriter> pcap = Create<PcapWriter> ();
fileName = pcap->GetFileName (nodeid, deviceid)
pcap->Open (fileName);
This way the routine GetFileName will contain the job and you don't have to
repeat the same code in each helper class. The documentation would be in that
case in PcapWriter and the change is minor in the sense that the old style will
be maintained.
What do you think?
Faker
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Ns-bugs
mailing list