utils/print-introspected-doxygen.cc
changeset 2542 a9b88fdc09d6
parent 2540 4e9ba43f7b9e
child 2577 5b41cb5c3fcf
     1.1 --- a/utils/print-introspected-doxygen.cc	Sun Mar 02 22:52:55 2008 +0100
     1.2 +++ b/utils/print-introspected-doxygen.cc	Mon Mar 03 01:58:57 2008 +0100
     1.3 @@ -1,6 +1,5 @@
     1.4  #include "ns3/internet-node.h"
     1.5  #include "ns3/ptr.h"
     1.6 -#include "ns3/trace-resolver.h"
     1.7  #include "ns3/node-list.h"
     1.8  #include "ns3/point-to-point-net-device.h"
     1.9  #include "ns3/csma-net-device.h"
    1.10 @@ -12,77 +11,6 @@
    1.11  
    1.12  using namespace ns3;
    1.13  
    1.14 -void
    1.15 -PrintSimpleText (const TraceResolver::SourceCollection *sources, std::ostream &os)
    1.16 -{
    1.17 -  for (TraceResolver::SourceCollection::Iterator i = sources->Begin (); i != sources->End (); i++)
    1.18 -    {
    1.19 -      os << "source=" << i->path << std::endl;
    1.20 -      os << "TraceContext=[";
    1.21 -      i->context.PrintAvailable (os, ",");
    1.22 -      os << "]" << std::endl;
    1.23 -      os << "help=\"" << i->doc.GetHelp () << "\"" << std::endl;
    1.24 -      os << "void TraceSinkCallback (const TraceContext &";
    1.25 -      for (TraceDoc::Iterator k = i->doc.ArgsBegin (); k != i->doc.ArgsEnd (); k++)
    1.26 -        {
    1.27 -          os << ", " << k->first;
    1.28 -        }
    1.29 -      os << ")" << std::endl;
    1.30 -      os << "argument 1  --  the trace context associated to the connected trace source." << std::endl;
    1.31 -      uint32_t k = 2;
    1.32 -      for (TraceDoc::Iterator j = i->doc.ArgsBegin (); j != i->doc.ArgsEnd (); j++)
    1.33 -        {
    1.34 -          os << "argument " << k << "  --  " << j->second << "." << std::endl;
    1.35 -          k++;
    1.36 -        }
    1.37 -      os << std::endl;
    1.38 -    }
    1.39 -}
    1.40 -static void
    1.41 -PrintDoxygenText (const TraceResolver::SourceCollection *sources, std::ostream &os)
    1.42 -{
    1.43 -  uint32_t z = 0;
    1.44 -  for (TraceResolver::SourceCollection::Iterator i = sources->Begin (); i != sources->End (); i++)
    1.45 -    {
    1.46 -      os << "///" << std::endl;
    1.47 -      os << "/// \\ingroup TraceSourceList" << std::endl; 
    1.48 -      os << "/// \\brief " << i->doc.GetHelp () << std::endl;
    1.49 -      os << "/// \\param arg1 the trace context associated to the connected trace source." << std::endl;
    1.50 -      uint32_t j = 2;
    1.51 -      for (TraceDoc::Iterator l = i->doc.ArgsBegin (); l != i->doc.ArgsEnd (); l++)
    1.52 -        {
    1.53 -          os << "/// \\param arg" << j << " " << l->second << "." << std::endl;
    1.54 -          j++;
    1.55 -        }
    1.56 -      os << "///" << std::endl;
    1.57 -      os << "///" << std::endl;
    1.58 -      os << "/// The path to this trace source is: <b><tt>\"" << i->path << "\"</tt></b>." << std::endl;
    1.59 -      os << "///" << std::endl;
    1.60 -      if (i->context.Begin ().IsLast ())
    1.61 -        {
    1.62 -          os << "/// No data can be extracted from \\p arg1 with ns3::TraceContext::GetElement." << std::endl;
    1.63 -        }
    1.64 -      else
    1.65 -        {
    1.66 -          os << "/// The following classes can be extracted from \\p arg1 with " << std::endl;
    1.67 -          os << "/// ns3::TraceContext::GetElement:" << std::endl;
    1.68 -          for (TraceContext::Iterator m = i->context.Begin (); !m.IsLast (); m.Next ())
    1.69 -            {
    1.70 -              os << "///  - " << m.Get () << std::endl;
    1.71 -            }
    1.72 -        }
    1.73 -      os << "void TraceSinkCallback" << z << " (const TraceContext & arg1" ;
    1.74 -      j = 2;
    1.75 -      for (TraceDoc::Iterator k = i->doc.ArgsBegin (); k != i->doc.ArgsEnd (); k++)
    1.76 -        {
    1.77 -          os << ", " << k->first << " arg" << j;
    1.78 -          j++;
    1.79 -        }
    1.80 -      os << ");" << std::endl;
    1.81 -      os << std::endl;
    1.82 -      z++;
    1.83 -    }
    1.84 -}
    1.85  
    1.86  static void
    1.87  PrintOneDefaultValue (DefaultValueBase *value, std::ostream &os)
    1.88 @@ -131,10 +59,6 @@
    1.89    node->AddDevice (csma);
    1.90    csma->AddQueue (CreateObject<DropTailQueue> ());
    1.91  
    1.92 -  TraceResolver::SourceCollection collection;
    1.93 -  //NodeList::GetTraceResolver ()->CollectSources ("", TraceContext (), &collection);
    1.94 -  PrintDoxygenText (&collection, std::cout);
    1.95 -
    1.96  
    1.97    PrintDefaultValuesDoxygen (std::cout);
    1.98