utils/print-trace-sources.cc
changeset 1368 e75dc1a2a5fb
child 1371 bebf690257c9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/utils/print-trace-sources.cc	Mon Aug 27 20:25:15 2007 +0200
@@ -0,0 +1,23 @@
+#include "ns3/internet-node.h"
+#include "ns3/ptr.h"
+#include "ns3/trace-resolver.h"
+#include "ns3/node-list.h"
+#include "ns3/point-to-point-net-device.h"
+#include "ns3/csma-cd-net-device.h"
+#include "ns3/queue.h"
+
+using namespace ns3;
+
+int main (int argc, char *argv[])
+{
+  Ptr<Node> node = Create<InternetNode> ();
+
+  Ptr<PointToPointNetDevice> p2p = Create<PointToPointNetDevice> (node);
+  p2p->AddQueue (Queue::CreateDefault ());
+  Ptr<CsmaCdNetDevice> csma = Create<CsmaCdNetDevice> (node);
+  csma->AddQueue (Queue::CreateDefault ());
+
+  NodeList::GetTraceResolver ()->PrintAvailable ("", TraceContext (), std::cout);
+
+  return 0;
+}