utils/print-introspected-doxygen.cc
changeset 2230 9f13ac3291e0
parent 1855 ee15fef0cb62
child 2253 dfa0f692e38a
equal deleted inserted replaced
2205:57710f066013 2230:9f13ac3291e0
   114 }
   114 }
   115 
   115 
   116 
   116 
   117 int main (int argc, char *argv[])
   117 int main (int argc, char *argv[])
   118 {
   118 {
   119   Ptr<Node> node = Create<InternetNode> ();
   119   Ptr<Node> node = CreateObject<InternetNode> ();
   120   node->AddInterface (Create<MobilityModelNotifier> ());
   120   node->AddInterface (CreateObject<MobilityModelNotifier> ());
   121 
   121 
   122   Ptr<PointToPointNetDevice> p2p = Create<PointToPointNetDevice> (node);
   122   Ptr<PointToPointNetDevice> p2p = CreateObject<PointToPointNetDevice> (node);
   123   p2p->AddQueue (Queue::CreateDefault ());
   123   p2p->AddQueue (Queue::CreateDefault ());
   124   Ptr<CsmaNetDevice> csma = Create<CsmaNetDevice> (node);
   124   Ptr<CsmaNetDevice> csma = CreateObject<CsmaNetDevice> (node);
   125   csma->AddQueue (Queue::CreateDefault ());
   125   csma->AddQueue (Queue::CreateDefault ());
   126 
   126 
   127   TraceResolver::SourceCollection collection;
   127   TraceResolver::SourceCollection collection;
   128   NodeList::GetTraceResolver ()->CollectSources ("", TraceContext (), &collection);
   128   NodeList::GetTraceResolver ()->CollectSources ("", TraceContext (), &collection);
   129   PrintDoxygenText (&collection, std::cout);
   129   PrintDoxygenText (&collection, std::cout);