|
Bugzilla – Full Text Bug Listing |
| Summary: | no way to associate std::cout with OutputStreamWrapper | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
| Component: | core | Assignee: | Mathieu Lacage <mathieu.lacage> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | mathieu.lacage, ns-bugs, rohrej |
| Priority: | P5 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Tom Henderson
2010-12-08 17:44:02 UTC
One alternative to the SetStream function might be add a function to AsciiTraceHelper which returns Ptr<OutputStreamWrapper> directed to standard output. This would be sufficient for our (KUs) needs, without allowing the passing of arbitrary streams by the user. Does this work (without any changes to ns-3-dev)? PointToPointHelper p2p; Ptr<OutputStreamWrapper> osw = Create<OutputStreamWrapper> (&std::cout); p2p.EnableAsciiAll (osw); (In reply to comment #2) > Does this work (without any changes to ns-3-dev)? > > PointToPointHelper p2p; > Ptr<OutputStreamWrapper> osw = Create<OutputStreamWrapper> (&std::cout); > p2p.EnableAsciiAll (osw); it should work. INVALID. |