Bug 1241

Summary: document how to access trace source as an attribute
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: coreAssignee: 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 EDT
reminder to document this:
http://mailman.isi.edu/pipermail/ns-developers/2011-July/009169.html
Comment 1 Peter Barnes 2019-11-05 17:00:38 EST
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
Comment 2 Peter Barnes 2019-11-05 17:00:51 EST
Move to core