utils/print-introspected-doxygen.cc
changeset 4513 544c9d637ff1
parent 4364 579bbfe8bb65
child 4580 8092e3e83487
     1.1 --- a/utils/print-introspected-doxygen.cc	Mon Mar 23 14:37:43 2009 +0100
     1.2 +++ b/utils/print-introspected-doxygen.cc	Mon Jun 08 14:14:04 2009 +0200
     1.3 @@ -4,6 +4,8 @@
     1.4  #include "ns3/object-vector.h"
     1.5  #include "ns3/config.h"
     1.6  #include "ns3/log.h"
     1.7 +#include "ns3/global-value.h"
     1.8 +#include "ns3/string.h"
     1.9  #include "ns3/helper-module.h"
    1.10  
    1.11  using namespace ns3;
    1.12 @@ -365,5 +367,19 @@
    1.13  
    1.14  
    1.15  
    1.16 +  std::cout << "/*!" << std::endl
    1.17 +	    << "\\ingroup core" << std::endl
    1.18 +	    << "\\defgroup GlobalValueList The list of all global values." << std::endl
    1.19 +	    << "<ul>" << std::endl;
    1.20 +  for (GlobalValue::Iterator i = GlobalValue::Begin (); i != GlobalValue::End (); ++i)
    1.21 +    {
    1.22 +      StringValue val;
    1.23 +      (*i)->GetValue (val);
    1.24 +      std::cout << "  <li><b>" << (*i)->GetName () << "</b>: " << (*i)->GetHelp () << "(" << val.Get () << ")</li>" << std::endl;
    1.25 +    }
    1.26 +  std::cout << "</ul>" << std::endl
    1.27 +	    << "*/" << std::endl;
    1.28 +
    1.29 +
    1.30    return 0;
    1.31  }