|
Bugzilla – Full Text Bug Listing |
| Summary: | document how to access trace source as an attribute | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
| Component: | core | Assignee: | Peter Barnes <pdbarnes> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | ns-bugs, pdbarnes |
| Priority: | P5 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Tom Henderson
2011-08-09 15:42:56 UTC
On Tue, May 31, 2011 at 10:16, Ruben Merz <ruben at net.t-labs.tu-berlin.de> wrote: > If I have the following: > > .AddTraceSource ("WifiMacQueueSizeTrace", > "The current size of the Wifi MAC queue", > MakeTraceSourceAccessor (&WifiMacQueue::m_size)) > > > Would m_size also be accessible through the attribute system? My current > understanding is no and so I would typically need to add a .AddAttribute > field. yes but you can AddAttribute on the TraceValue itself without introducing another variable. Mathieu Move to core |