utils/print-introspected-doxygen.cc
changeset 4513 544c9d637ff1
parent 4364 579bbfe8bb65
child 4580 8092e3e83487
--- a/utils/print-introspected-doxygen.cc	Mon Jun 08 13:50:38 2009 +0200
+++ b/utils/print-introspected-doxygen.cc	Mon Jun 08 14:14:04 2009 +0200
@@ -4,6 +4,8 @@
 #include "ns3/object-vector.h"
 #include "ns3/config.h"
 #include "ns3/log.h"
+#include "ns3/global-value.h"
+#include "ns3/string.h"
 #include "ns3/helper-module.h"
 
 using namespace ns3;
@@ -365,5 +367,19 @@
 
 
 
+  std::cout << "/*!" << std::endl
+	    << "\\ingroup core" << std::endl
+	    << "\\defgroup GlobalValueList The list of all global values." << std::endl
+	    << "<ul>" << std::endl;
+  for (GlobalValue::Iterator i = GlobalValue::Begin (); i != GlobalValue::End (); ++i)
+    {
+      StringValue val;
+      (*i)->GetValue (val);
+      std::cout << "  <li><b>" << (*i)->GetName () << "</b>: " << (*i)->GetHelp () << "(" << val.Get () << ")</li>" << std::endl;
+    }
+  std::cout << "</ul>" << std::endl
+	    << "*/" << std::endl;
+
+
   return 0;
 }