utils/print-introspected-doxygen.cc
changeset 2502 50d0da37f02f
parent 2500 1fb9430f642d
child 2533 80cdc3eec057
--- a/utils/print-introspected-doxygen.cc	Wed Feb 27 20:48:43 2008 +0100
+++ b/utils/print-introspected-doxygen.cc	Wed Feb 27 21:41:34 2008 +0100
@@ -7,6 +7,7 @@
 #include "ns3/queue.h"
 #include "ns3/mobility-model-notifier.h"
 #include "ns3/default-value.h"
+#include "ns3/string.h"
 
 using namespace ns3;
 
@@ -119,12 +120,13 @@
   Ptr<Node> node = CreateObject<InternetNode> ();
   node->AggregateObject (CreateObject<MobilityModelNotifier> ());
 
-  Ptr<PointToPointNetDevice> p2p = CreateObject<PointToPointNetDevice> (node, Mac48Address::Allocate ());
+  Ptr<PointToPointNetDevice> p2p = CreateObjectWith<PointToPointNetDevice> ("Node", node, 
+									    "Address", Mac48Address::Allocate ());
   node->AddDevice (p2p);
   p2p->AddQueue (Queue::CreateDefault ());
   Ptr<CsmaNetDevice> csma = CreateObjectWith<CsmaNetDevice> ("Node", node, 
 							     "Address", Mac48Address::Allocate (),
-							     "EncapsulationMode", "Llc");
+							     "EncapsulationMode", String ("Llc"));
   node->AddDevice (csma);
   csma->AddQueue (Queue::CreateDefault ());