utils/print-introspected-doxygen.cc
changeset 2502 50d0da37f02f
parent 2500 1fb9430f642d
child 2533 80cdc3eec057
     1.1 --- a/utils/print-introspected-doxygen.cc	Wed Feb 27 20:23:57 2008 +0100
     1.2 +++ b/utils/print-introspected-doxygen.cc	Wed Feb 27 21:41:34 2008 +0100
     1.3 @@ -7,6 +7,7 @@
     1.4  #include "ns3/queue.h"
     1.5  #include "ns3/mobility-model-notifier.h"
     1.6  #include "ns3/default-value.h"
     1.7 +#include "ns3/string.h"
     1.8  
     1.9  using namespace ns3;
    1.10  
    1.11 @@ -119,12 +120,13 @@
    1.12    Ptr<Node> node = CreateObject<InternetNode> ();
    1.13    node->AggregateObject (CreateObject<MobilityModelNotifier> ());
    1.14  
    1.15 -  Ptr<PointToPointNetDevice> p2p = CreateObject<PointToPointNetDevice> (node, Mac48Address::Allocate ());
    1.16 +  Ptr<PointToPointNetDevice> p2p = CreateObjectWith<PointToPointNetDevice> ("Node", node, 
    1.17 +									    "Address", Mac48Address::Allocate ());
    1.18    node->AddDevice (p2p);
    1.19    p2p->AddQueue (Queue::CreateDefault ());
    1.20    Ptr<CsmaNetDevice> csma = CreateObjectWith<CsmaNetDevice> ("Node", node, 
    1.21  							     "Address", Mac48Address::Allocate (),
    1.22 -							     "EncapsulationMode", "Llc");
    1.23 +							     "EncapsulationMode", String ("Llc"));
    1.24    node->AddDevice (csma);
    1.25    csma->AddQueue (Queue::CreateDefault ());
    1.26